mirror of https://review.coreboot.org/STM.git
Make sure code supports both MS and SYS V ABI
Signed-off-by: Eugene D. Myers <edmyers@tycho.nsa.gov>
This commit is contained in:
parent
9751de174c
commit
fab8e81d9e
|
@ -63,7 +63,8 @@ GoBsp:
|
|||
push %rcx
|
||||
movl $STM_API_INITIALIZE_PROTECTION, %eax
|
||||
push %rax
|
||||
movq %rsp, %rcx # parameter
|
||||
movq %rsp, %rcx # parameter for MSC
|
||||
movq %rsp, %rdi # parameter for GCC
|
||||
subq $0x20, %rsp
|
||||
call ASM_PFX(InitializeSmmMonitor)
|
||||
addq $0x20, %rsp
|
||||
|
@ -110,7 +111,8 @@ GoAp:
|
|||
push %rcx
|
||||
movl $STM_API_START, %eax
|
||||
push %rax
|
||||
movq %rsp, %rcx # parameter
|
||||
movq %rsp, %rcx # parameter for MSC
|
||||
movq %rsp, %rdi # parameter for GCC
|
||||
subq $0x20, %rsp
|
||||
call ASM_PFX(InitializeSmmMonitor)
|
||||
addq $0x20, %rsp
|
||||
|
|
Loading…
Reference in New Issue