Skip to content

Commit e228aa3

Browse files
committed
Save rax register in getcontext
1 parent 9ddbfd9 commit e228aa3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libc/intrin/getcontext.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
mov %rbp,120(%rdi)
3535
mov %rbx,128(%rdi)
3636
mov %rdx,136(%rdi)
37+
mov %rax,144(%rdi)
3738
mov %rcx,152(%rdi)
3839
lea 8(%rsp),%rax
3940
mov %rax,160(%rdi) // rsp = caller's rsp

0 commit comments

Comments
 (0)