forked from ariadne/libucontext
x86/x86_64: getcontext: no need to restore %ecx or %rcx
parent
0143bbac98
commit
556da6ce99
|
@ -42,9 +42,6 @@ __getcontext:
|
|||
movw %fs, %cx
|
||||
movl %ecx, OFFSET_REG_FS(%eax)
|
||||
|
||||
/* we need to restore %ecx because we clobbered it earlier */
|
||||
movl OFFSET_REG_ECX(%eax), %ecx
|
||||
|
||||
/* we're all done here, return 0 */
|
||||
xorl %eax, %eax
|
||||
ret
|
||||
|
|
|
@ -39,9 +39,6 @@ __getcontext:
|
|||
leaq 8(%rsp), %rcx
|
||||
movq %rcx, 160(%rdi)
|
||||
|
||||
/* we need to restore %rcx because we clobbered it earlier */
|
||||
movq 152(%rdi), %rcx
|
||||
|
||||
/* we're all done here, return 0 */
|
||||
xorl %eax, %eax
|
||||
ret
|
||||
|
|
Loading…
Reference in New Issue