From d13848da4275498da4428f97ee191787e5daef95 Mon Sep 17 00:00:00 2001 From: Justin Miller Date: Mon, 9 Oct 2023 23:00:38 -0700 Subject: [PATCH] [BOOT] Build fix attempt 1 --- boot/freeldr/freeldr/arch/uefi/amd64/uefiasm.S | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/boot/freeldr/freeldr/arch/uefi/amd64/uefiasm.S b/boot/freeldr/freeldr/arch/uefi/amd64/uefiasm.S index 4e79bb5e1e6c9..cfd6a004ab16f 100644 --- a/boot/freeldr/freeldr/arch/uefi/amd64/uefiasm.S +++ b/boot/freeldr/freeldr/arch/uefi/amd64/uefiasm.S @@ -3,8 +3,8 @@ #include .code64 -EXTERN UefiServiceStack:QWORD -EXTERN BasicStack:QWORD +EXTERN UefiServiceStack:DWORD +EXTERN BasicStack:DWORD EXTERN ExecuteLoaderCleanly:PROC EXTERN UefiExitBootServices:PROC @@ -17,12 +17,13 @@ _exituefi: push rdi push rbx + /* Save the old stack */ mov rbx, rsp /* Load the new stack */ xor rbp, rbp - mov rsp, UefiServiceStack + mov rsp, qword ptr UefiServiceStack /* Call the entry routine, passing the parameters */ mov rax, UefiExitBootServices @@ -44,7 +45,7 @@ _exituefi: PUBLIC _changestack _changestack: mov rax, rsp - mov rsp, BasicStack + mov rsp, qword ptr BasicStack push rax call ExecuteLoaderCleanly ret