Fix stack alignment and shadow space for EntryPoint call
This commit is contained in:
@@ -467,9 +467,11 @@ ApEnterLongMode:
|
|||||||
|
|
||||||
/* Save the pointer to PROCESSOR_START_BLOCK */
|
/* Save the pointer to PROCESSOR_START_BLOCK */
|
||||||
movq %rdi, %rcx
|
movq %rdi, %rcx
|
||||||
pushq %rdi
|
|
||||||
|
|
||||||
/* Call the EntryPoint routine */
|
/* Allocate 32 bytes of shadow space */
|
||||||
|
subq $32, %rsp
|
||||||
|
|
||||||
|
/* Fetch the EntryPoint address and call the routine */
|
||||||
movq PROCESSOR_START_BLOCK_EntryPoint(%rdi), %rax
|
movq PROCESSOR_START_BLOCK_EntryPoint(%rdi), %rax
|
||||||
call *%rax
|
call *%rax
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user