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:
Eugene D. Myers 2020-10-15 12:23:52 -04:00 committed by Eugene D Myers
parent 9751de174c
commit fab8e81d9e
1 changed files with 4 additions and 2 deletions

View File

@ -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