Fix FSP GCC error on FspApiCallingCheck().

Add comment for ASM.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: "Yao, Jiewen" <Jiewen.Yao@intel.com> 
Reviewed-by: "Mudusuru, Giri P" <giri.p.mudusuru@intel.com>



git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17281 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Yao, Jiewen 2015-05-01 01:05:00 +00:00 committed by jyao1
parent 6f7878a972
commit 12a92f51f0
2 changed files with 5 additions and 4 deletions

View File

@ -489,8 +489,8 @@ FspApiCommon PROC C PUBLIC
; Verify the calling condition
;
pushad
push [esp + 4 * 8 + 4]
push eax
push [esp + 4 * 8 + 4] ; push ApiParam
push eax ; push ApiIdx
call FspApiCallingCheck
add esp, 8
cmp eax, 0

View File

@ -703,9 +703,10 @@ FspApiCommonL0:
# Verify the calling condition
#
pushal
pushl %eax
pushl 36(%esp) #push ApiParam [esp + 4 * 8 + 4]
pushl %eax #push ApiIdx
call ASM_PFX(FspApiCallingCheck)
addl $0x04, %esp
addl $0x08, %esp
cmpl $0x00, %eax
jz FspApiCommonL1
movl %eax, 0x1C(%esp) # mov dword ptr [esp + 4 * 7], eax