Skip to content

Commit

Permalink
Save rax register in getcontext
Browse files Browse the repository at this point in the history
  • Loading branch information
jart committed Nov 22, 2024
1 parent 9ddbfd9 commit e228aa3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libc/intrin/getcontext.inc
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
mov %rbp,120(%rdi)
mov %rbx,128(%rdi)
mov %rdx,136(%rdi)
mov %rax,144(%rdi)
mov %rcx,152(%rdi)
lea 8(%rsp),%rax
mov %rax,160(%rdi) // rsp = caller's rsp
Expand Down

0 comments on commit e228aa3

Please sign in to comment.