;; @file\r
; Provide FSP API entry points.\r
;\r
-; Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>\r
+; Copyright (c) 2016 - 2018, 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
sidt [esp]\r
\r
\r
- ; Get Stackbase and StackSize from FSPM_UPD Param \r
- mov edx, [esp + API_PARAM1_OFFSET] \r
+ ; Get Stackbase and StackSize from FSPM_UPD Param\r
+ mov edx, [esp + API_PARAM1_OFFSET]\r
cmp edx, 0\r
- jnz FspStackSetup \r
+ jnz FspStackSetup\r
\r
; Get UPD default values if FspmUpdDataPtr (ApiParam1) is null\r
push eax\r
mov edx, [eax + FSP_HEADER_IMGBASE_OFFSET]\r
add edx, [eax + FSP_HEADER_CFGREG_OFFSET]\r
pop eax\r
- \r
+\r
FspStackSetup:\r
mov edi, [edx + FSPM_UPD_COMMON.StackBase]\r
mov ecx, [edx + FSPM_UPD_COMMON.StackSize]\r
mov eax, dword [ASM_PFX(FspPeiCoreEntryOff)]\r
ret\r
\r
+;----------------------------------------------------------------------------\r
+; TempRamInit API\r
+;\r
+; Empty function for WHOLEARCHIVE build option\r
+;\r
+;----------------------------------------------------------------------------\r
+global ASM_PFX(TempRamInitApi)\r
+ASM_PFX(TempRamInitApi):\r
+ jmp $\r
+ ret\r
+\r
;----------------------------------------------------------------------------\r
; Module Entrypoint API\r
;----------------------------------------------------------------------------\r