;\r
; Following functions will be provided in PlatformSecLib\r
;\r
-EXTERN GetFspBaseAddress:PROC\r
-EXTERN GetFspInfoHdr:PROC\r
+EXTERN AsmGetFspBaseAddress:PROC\r
+EXTERN AsmGetFspInfoHeader:PROC\r
EXTERN GetBootFirmwareVolumeOffset:PROC\r
EXTERN Loader2PeiSwitchStack:PROC\r
EXTERN LoadMicrocode(LoadMicrocodeDefault):PROC\r
; Verify the calling condition\r
;\r
pushad\r
- push [esp + 4 * 8 + 4]\r
- push eax\r
+ push [esp + 4 * 8 + 4] ; push ApiParam\r
+ push eax ; push ApiIdx\r
call FspApiCallingCheck\r
add esp, 8\r
cmp eax, 0\r
cmp eax, 3 ; FspMemoryInit API\r
jz @F\r
\r
- call GetFspInfoHdr\r
+ call AsmGetFspInfoHeader\r
jmp Loader2PeiSwitchStack\r
\r
@@:\r
; Update the FspInfoHeader pointer\r
;\r
push eax\r
- call GetFspInfoHdr\r
+ call AsmGetFspInfoHeader\r
mov [esp + 4], eax\r
pop eax\r
\r
;\r
; Pass entry point of the PEI core\r
;\r
- call GetFspBaseAddress\r
+ call AsmGetFspBaseAddress\r
mov edi, eax\r
add edi, PcdGet32 (PcdFspAreaSize) \r
sub edi, 20h\r
; PcdFspAreaBaseAddress are the same. For FSP with mulitple FVs,\r
; they are different. The code below can handle both cases.\r
;\r
- call GetFspBaseAddress\r
+ call AsmGetFspBaseAddress\r
mov edi, eax\r
call GetBootFirmwareVolumeOffset\r
add eax, edi\r