mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-23 21:54:27 +02:00
SysCall/X64: Fixed CallBootService() for VS2019.
This commit is contained in:
parent
796bded098
commit
3105aa040c
@ -147,8 +147,8 @@ ASM_PFX(CoreBootServices):
|
|||||||
push r8
|
push r8
|
||||||
push rdx
|
push rdx
|
||||||
mov rbp, rsp
|
mov rbp, rsp
|
||||||
; Reserve space on stack for 3 CallBootService arguments (NOOPT prerequisite).
|
; Reserve space on stack for 4 CallBootService arguments (NOOPT prerequisite).
|
||||||
sub rsp, 8*3
|
sub rsp, 8*4
|
||||||
|
|
||||||
; Prepare CallBootService arguments.
|
; Prepare CallBootService arguments.
|
||||||
mov rcx, r10
|
mov rcx, r10
|
||||||
@ -165,7 +165,7 @@ ASM_PFX(CoreBootServices):
|
|||||||
pop rax
|
pop rax
|
||||||
|
|
||||||
; Step over Arguments [1..3] and NOOPT buffer.
|
; Step over Arguments [1..3] and NOOPT buffer.
|
||||||
add rsp, 8*6
|
add rsp, 8*7
|
||||||
|
|
||||||
; Prepare SYSRET arguments.
|
; Prepare SYSRET arguments.
|
||||||
pop r11
|
pop r11
|
||||||
|
Loading…
x
Reference in New Issue
Block a user