]> git.proxmox.com Git - mirror_edk2.git/commitdiff
QuarkPlatformPkg/PlatformSecLib: Sync Flat32.S with Flat32.asm
authorMichael Kinney <michael.d.kinney@intel.com>
Wed, 16 Dec 2015 17:34:23 +0000 (17:34 +0000)
committermdkinney <mdkinney@Edk2>
Wed, 16 Dec 2015 17:34:23 +0000 (17:34 +0000)
Update Flat32.S to match Flat32.asm.  A sync was missed, so
Flat32.S is calling SecStartup instead of PlatformSecLibStartup
which is causing a boot failures with GCC builds because the
caches are not initialized correctly when the call to
PlatformSecLibStartup is not performed.

Cc: Kelly Steele <kelly.steele@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-by: Kelly Steele <kelly.steele@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19306 6f19259b-4bc3-4df7-8a09-765794883524

QuarkPlatformPkg/Library/PlatformSecLib/Ia32/Flat32.S

index fbdad53aa0414c2ac3a9b5be4176b5d43cd5b734..2bb503f6a4ce1a76e8af61907ec666880ede7b95 100644 (file)
@@ -1,6 +1,6 @@
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2013 Intel Corporation.\r
+# Copyright (c) 2013 - 2015 Intel Corporation.\r
 #\r
 # This program and the accompanying materials\r
 # are licensed and made available under the terms and conditions of the BSD License\r
@@ -301,35 +301,10 @@ PushBist:
   pushl   %ebp\r
   loop    PushBist\r
 \r
-  #\r
-  # Pass entry point of the PEI core\r
-  #\r
-  movl $0xFFFFFFE0, %edi\r
-  pushl %ds:(%edi)\r
-\r
-  #\r
-  # Pass BFV into the PEI Core\r
-  #\r
-  movl $0xFFFFFFFC, %edi\r
-  pushl %ds:(%edi)\r
-\r
-  #\r
-  # Pass Temp Ram Base into the PEI Core\r
-  #\r
-  movl    ASM_PFX(PcdGet32(PcdEsramStage1Base)), %eax\r
-  addl    $(QUARK_ESRAM_MEM_SIZE_BYTES - QUARK_STACK_SIZE_BYTES), %eax\r
-  pushl   %eax\r
-\r
-\r
-  #\r
-  # Pass stack size into the PEI Core\r
-  #\r
-  pushl   $QUARK_STACK_SIZE_BYTES\r
-\r
   #\r
   # Pass Control into the PEI Core\r
   #\r
-  call SecStartup\r
+  call PlatformSecLibStartup\r
 \r
   #\r
   # PEI Core should never return to here, this is just to capture an invalid return.\r