]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFsp2Pkg/FspSecCore/Ia32/FspApiEntryM.nasm
FmpDevicePkg: Add library instances
[mirror_edk2.git] / IntelFsp2Pkg / FspSecCore / Ia32 / FspApiEntryM.nasm
index 9744e1682d3f73de10813bbe0cfc72fea880cf26..9c9a84db0a3e1aa4a9663d587739b6d1a8d0455d 100644 (file)
@@ -1,7 +1,7 @@
 ;; @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
@@ -116,10 +116,10 @@ ASM_PFX(FspApiCommonContinue):
   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
@@ -127,7 +127,7 @@ ASM_PFX(FspApiCommonContinue):
   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
@@ -194,6 +194,17 @@ ASM_PFX(AsmGetPeiCoreOffset):
    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