]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/ResetVector/Ia32/AmdSev.asm
OvmfPkg: Make an Ia32/X64 hybrid build work with SEV
[mirror_edk2.git] / OvmfPkg / ResetVector / Ia32 / AmdSev.asm
index 864d68385342c7d49bb41154b4c0b8c2038a479b..9350b04068332e2f888c8ad82caf08d9cfa88653 100644 (file)
@@ -150,6 +150,8 @@ BITS    32
 SevEsUnexpectedRespTerminate:\r
     TerminateVmgExit    TERM_UNEXPECTED_RESP_CODE\r
 \r
+%ifdef ARCH_X64\r
+\r
 ; If SEV-ES is enabled then initialize and make the GHCB page shared\r
 SevClearPageEncMaskForGhcbPage:\r
     ; Check if SEV is enabled\r
@@ -209,6 +211,8 @@ GetSevCBitMaskAbove31:
 GetSevCBitMaskAbove31Exit:\r
     OneTimeCallRet GetSevCBitMaskAbove31\r
 \r
+%endif\r
+\r
 ; Check if Secure Encrypted Virtualization (SEV) features are enabled.\r
 ;\r
 ; Register usage is tight in this routine, so multiple calls for the\r