x86/x86_64: getcontext: no need to restore %ecx or %rcx

arm_linker_fix
William Pitcock 2018-02-14 05:12:09 +00:00
parent 0143bbac98
commit 556da6ce99
2 changed files with 0 additions and 6 deletions

View File

@ -42,9 +42,6 @@ __getcontext:
movw %fs, %cx movw %fs, %cx
movl %ecx, OFFSET_REG_FS(%eax) 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 */ /* we're all done here, return 0 */
xorl %eax, %eax xorl %eax, %eax
ret ret

View File

@ -39,9 +39,6 @@ __getcontext:
leaq 8(%rsp), %rcx leaq 8(%rsp), %rcx
movq %rcx, 160(%rdi) 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 */ /* we're all done here, return 0 */
xorl %eax, %eax xorl %eax, %eax
ret ret