Modify SetJump and LongJump to support Sys V ABI

Signed-off-by: Eugene D. Myers <edmyers@tycho.nsa.gov>
This commit is contained in:
Eugene D. Myers 2020-10-15 12:49:59 -04:00 committed by Eugene D Myers
parent 8273e51b56
commit 652d93d593
2 changed files with 3 additions and 0 deletions

View File

@ -29,6 +29,8 @@
#------------------------------------------------------------------------------
ASM_GLOBAL ASM_PFX(InternalLongJump)
ASM_PFX(InternalLongJump):
mov %rdi, %rcx
mov %rsi, %rdx
mov (%rcx), %rbx
mov 0x8(%rcx), %rsp
mov 0x10(%rcx), %rbp

View File

@ -21,6 +21,7 @@
ASM_GLOBAL ASM_PFX(SetJump)
ASM_PFX(SetJump):
mov %rdi, %rcx
push %rcx
add $0xffffffffffffffe0,%rsp
call ASM_PFX(InternalAssertJumpBuffer)