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
_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