]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFspWrapperPkg/Library/SecPeiFspPlatformSecLibSample/Ia32/SecEntry.S
Eliminate duplicated file GUID.
[mirror_edk2.git] / IntelFspWrapperPkg / Library / SecPeiFspPlatformSecLibSample / Ia32 / SecEntry.S
index 3145a484a331ef75ab4be3964fb1c66c338fce09..24bc36b9c449afccf7c21a467edeeecad4548c43 100644 (file)
@@ -22,6 +22,9 @@
 \r
 #include "Fsp.h"\r
 \r
+ASM_GLOBAL    ASM_PFX(_gPcd_FixedAtBuild_PcdFlashFvFspBase)\r
+ASM_GLOBAL    ASM_PFX(_gPcd_FixedAtBuild_PcdFlashFvFspSize)\r
+\r
 ASM_GLOBAL ASM_PFX(_TEXT_REALMODE)\r
 ASM_PFX(_TEXT_REALMODE):\r
 #----------------------------------------------------------------------------\r
@@ -103,7 +106,7 @@ ASM_PFX(_ModuleEntryPoint):
   # Transition to Flat 32 bit protected mode\r
   # The jump to a far pointer causes the transition to 32 bit mode\r
   #\r
-  movl    $ProtectedModeEntryLinearAddress, %esi\r
+  movl    ASM_PFX(ProtectedModeEntryLinearAddress), %esi\r
   jmp     *%cs:(%si)\r
 \r
 ASM_GLOBAL ASM_PFX(_TEXT_PROTECTED_MODE)\r
@@ -134,8 +137,8 @@ ASM_GLOBAL ASM_PFX(ProtectedModeEntryPoint)
 ASM_PFX(ProtectedModeEntryPoint):\r
 \r
   # Find the fsp info header\r
-  movl PcdGet32 (PcdFlashFvFspBase), %edi\r
-  movl PcdGet32 (PcdFlashFvFspSize), %ecx\r
+  movl ASM_PFX(_gPcd_FixedAtBuild_PcdFlashFvFspBase), %edi\r
+  movl ASM_PFX(_gPcd_FixedAtBuild_PcdFlashFvFspSize), %ecx\r
 \r
   movl FVH_SIGINATURE_OFFSET(%edi), %eax\r
   cmp  $FVH_SIGINATURE_VALID_VALUE, %eax\r
@@ -224,7 +227,7 @@ FspApiFailed:
 .align 0x10\r
 TempRamInitStack:\r
     .long  TempRamInitDone\r
-    .long  TempRamInitParams\r
+    .long  ASM_PFX(TempRamInitParams)\r
 \r
 #\r
 # ROM-based Global-Descriptor Table for the Tiano PEI Phase\r
@@ -321,5 +324,5 @@ GdtDesc:                                # GDT descriptor
 \r
 ASM_PFX(ProtectedModeEntryLinearAddress):\r
 ProtectedModeEntryLinearOffset:\r
-  .long      ProtectedModeEntryPoint  # Offset of our 32 bit code\r
+  .long      ASM_PFX(ProtectedModeEntryPoint)  # Offset of our 32 bit code\r
   .word      LINEAR_CODE_SEL\r