Skip to content

Commit 020d8f1

Browse files
committed
rt: Implement record_sp for 64-bit linux
1 parent f3a8e22 commit 020d8f1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/rt/arch/x86_64/record_sp.S

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,10 @@
88

99
.globl RECORD_SP
1010

11+
#if defined(__linux__)
12+
RECORD_SP:
13+
movq %rdi, %fs:112
14+
#else
1115
RECORD_SP:
1216
ret
17+
#endif

0 commit comments

Comments
 (0)