Merge "Add missing register preserve in x86/x86_64 longjmp."

This commit is contained in:
Josh Gao 2015-10-07 21:17:47 +00:00 committed by Gerrit Code Review
commit cc56abbb00
2 changed files with 4 additions and 0 deletions

View File

@ -151,9 +151,11 @@ ENTRY(siglongjmp)
PIC_PROLOGUE
pushl %eax
pushl %ecx
pushl (_JB_SIGFLAG * 4)(%edx)
call PIC_PLT(__bionic_setjmp_cookie_check)
addl $4,%esp
popl %ecx
popl %eax
PIC_EPILOGUE

View File

@ -159,8 +159,10 @@ ENTRY(siglongjmp)
// Check the cookie.
pushq %rax
pushq %r11
movq %rcx, %rdi
call PIC_PLT(__bionic_setjmp_cookie_check)
popq %r11
popq %rax
// Return 1 if value is 0.