summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarvin Häuser <Marvin.Haeuser@outlook.com>2018-02-27 23:09:18 +0100
committerJiewen Yao <jiewen.yao@intel.com>2018-02-28 09:14:46 +0800
commit13d067fe36d2ce694bf9d8f646b92cd185dea858 (patch)
treebaaea8ac1b6d6996f07bfc52c8765bb03cb0b01e
parent2bbb69518ed8ed2a5d42325dd0983a6c16697a68 (diff)
downloadedk2-platforms-13d067fe36d2ce694bf9d8f646b92cd185dea858.tar.xz
MinPlatformPkg/SecFspWrapperPlatformSecLib: Fix GCC ASM syntax.
Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Marvin Haeuser <Marvin.Haeuser@outlook.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
-rw-r--r--Platform/Intel/MinPlatformPkg/FspWrapper/Library/SecFspWrapperPlatformSecLib/Ia32/SecEntry.S14
1 files changed, 7 insertions, 7 deletions
diff --git a/Platform/Intel/MinPlatformPkg/FspWrapper/Library/SecFspWrapperPlatformSecLib/Ia32/SecEntry.S b/Platform/Intel/MinPlatformPkg/FspWrapper/Library/SecFspWrapperPlatformSecLib/Ia32/SecEntry.S
index 5610a16908..396e7a4c16 100644
--- a/Platform/Intel/MinPlatformPkg/FspWrapper/Library/SecFspWrapperPlatformSecLib/Ia32/SecEntry.S
+++ b/Platform/Intel/MinPlatformPkg/FspWrapper/Library/SecFspWrapperPlatformSecLib/Ia32/SecEntry.S
@@ -146,23 +146,23 @@ ASM_PFX(ProtectedModeEntryPoint):
# Find the fsp info header
movl PcdGet32(PcdFsptBaseAddress), %edi
- movl $FVH_SIGINATURE_OFFSET(%edi), %eax
+ movl FVH_SIGINATURE_OFFSET(%edi), %eax
cmp $FVH_SIGINATURE_VALID_VALUE, %eax
jnz FspHeaderNotFound
xorl %eax, %eax
- movw $FVH_EXTHEADER_OFFSET_OFFSET(%edi), %ax
+ movw FVH_EXTHEADER_OFFSET_OFFSET(%edi), %ax
cmp $0x00, %ax
jnz FspFvExtHeaderExist
xorl %eax, %eax
- movw $FVH_HEADER_LENGTH_OFFSET(%edi), %ax # Bypass Fv Header
+ movw FVH_HEADER_LENGTH_OFFSET(%edi), %ax # Bypass Fv Header
addl %eax, %edi
jmp FspCheckFfsHeader
FspFvExtHeaderExist:
addl %eax, %edi
- movl $FVH_EXTHEADER_SIZE_OFFSET(%edi), %eax # Bypass Ext Fv Header
+ movl FVH_EXTHEADER_SIZE_OFFSET(%edi), %eax # Bypass Ext Fv Header
addl %eax, %edi
# Round up to 8 byte alignment
@@ -194,7 +194,7 @@ FspCheckFfsHeader:
add $FFS_HEADER_SIZE_VALUE, %edi # Bypass the ffs header
# Check the section type as raw section
- movb $SECTION_HEADER_TYPE_OFFSET(%edi), %al
+ movb SECTION_HEADER_TYPE_OFFSET(%edi), %al
cmp $0x19, %al
jnz FspHeaderNotFound
@@ -206,8 +206,8 @@ FspHeaderNotFound:
FspHeaderFound:
# Get the fsp TempRamInit Api address
- movl $FSP_HEADER_IMAGEBASE_OFFSET(%edi), %eax
- addl $FSP_HEADER_TEMPRAMINIT_OFFSET(%edi), %eax
+ movl FSP_HEADER_IMAGEBASE_OFFSET(%edi), %eax
+ addl FSP_HEADER_TEMPRAMINIT_OFFSET(%edi), %eax
# Setup the hardcode stack
movl $TempRamInitStack, %esp