mirror of https://review.coreboot.org/STM.git
Modify SetJump and LongJump to support Sys V ABI
Signed-off-by: Eugene D. Myers <edmyers@tycho.nsa.gov>
This commit is contained in:
parent
8273e51b56
commit
652d93d593
|
@ -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
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
|
||||
ASM_GLOBAL ASM_PFX(SetJump)
|
||||
ASM_PFX(SetJump):
|
||||
mov %rdi, %rcx
|
||||
push %rcx
|
||||
add $0xffffffffffffffe0,%rsp
|
||||
call ASM_PFX(InternalAssertJumpBuffer)
|
||||
|
|
Loading…
Reference in New Issue