]> git.proxmox.com Git - mirror_edk2.git/commitdiff
QuarkPlatformPkg/PlatformSecLib: Fix stack pointer issue in Flat32.S
authorJeff Fan <jeff.fan@intel.com>
Tue, 20 Sep 2016 08:03:18 +0000 (16:03 +0800)
committerJeff Fan <jeff.fan@intel.com>
Wed, 21 Sep 2016 06:12:40 +0000 (14:12 +0800)
ESP should be set to top of eSRAM range that aligns with Flat32.asm. Because CPU
BIST data will be located at top of STACK, this issue leads Platform Sec Lib
cannot get the correct CPU BIST information.

This fix is to address below issue:
  https://tianocore.acgmultimedia.com/show_bug.cgi?id=123

Cc: Steven Shi <Steven.shi@intel.com>
Cc: Michael Kinney <michael.d.kinney@intel.com>
Cc: Kelly Steele <kelly.steele@intel.com>
Cc: Feng Tian <feng.tian@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>
QuarkPlatformPkg/Library/PlatformSecLib/Ia32/Flat32.S

index 2bb503f6a4ce1a76e8af61907ec666880ede7b95..f35dbcfcd8a4af33cc56aca0d832ef307ba1e1fa 100644 (file)
@@ -1,6 +1,6 @@
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2013 - 2015 Intel Corporation.\r
+# Copyright (c) 2013 - 2016 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
@@ -263,7 +263,7 @@ L0:
   # Set up stack pointer\r
   #\r
   movl    ASM_PFX(PcdGet32(PcdEsramStage1Base)), %esp\r
-  movl    $QUARK_STACK_SIZE_BYTES, %esi\r
+  movl    $QUARK_ESRAM_MEM_SIZE_BYTES, %esi\r
   addl    %esi, %esp                          # ESP = top of stack (stack grows downwards).\r
 \r
   #\r