]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/Sec/X64/SecEntry.asm
OvmfPkg: Move SEC/PEI Temporary RAM from 0x70000 to 0x810000
[mirror_edk2.git] / OvmfPkg / Sec / X64 / SecEntry.asm
index 55f5eabbfdc473242e8d3d45b8e75a7076db6cd9..4135208a3a04d95938a6e074fc5141bb621884ad 100644 (file)
@@ -1,7 +1,7 @@
       TITLE   SecEntry.asm\r
 ;------------------------------------------------------------------------------\r
 ;*\r
-;*   Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
+;*   Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>\r
 ;*   This program and the accompanying materials\r
 ;*   are licensed and made available under the terms and conditions of the BSD License\r
 ;*   which accompanies this distribution.  The full text of the license may be found at\r
@@ -36,10 +36,11 @@ EXTERN SecCoreStartupWithStack:PROC
 _ModuleEntryPoint PROC PUBLIC\r
 \r
     ;\r
-    ; Load temporary stack top at very low memory.  The C code\r
-    ; can reload to a better address.\r
+    ; Load temporary RAM stack based on PCDs\r
     ;\r
-    mov     rsp, BASE_512KB\r
+    SEC_TOP_OF_STACK EQU (FixedPcdGet32 (PcdOvmfSecPeiTempRamBase) + \\r
+                          FixedPcdGet32 (PcdOvmfSecPeiTempRamSize))\r
+    mov     rsp, SEC_TOP_OF_STACK\r
     nop\r
 \r
     ;\r