Save rax register in getcontext

This commit is contained in:
Justine Tunney 2024-11-22 13:32:52 -08:00
parent 9ddbfd921e
commit e228aa3e14
No known key found for this signature in database
GPG key ID: BE714B4575D6E328

View file

@ -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