]> git.proxmox.com Git - mirror_edk2.git/commitdiff
UefiCpuPkg CpuDxe: Call UefiCpuLib.InitializeFloatingPointUnits () to initialize...
authorrsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 6 Jul 2012 05:49:53 +0000 (05:49 +0000)
committerrsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 6 Jul 2012 05:49:53 +0000 (05:49 +0000)
For a platform tip with 32-bit PEI+64-bit DXE, InitializeFloatingPointUnits () should be called for BSP in the DXE phase.

Signed-off-by: Sun Rui <rui.sun@intel.com>
Reviewed-by: Fan Jeff <jeff.fan@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13511 6f19259b-4bc3-4df7-8a09-765794883524

UefiCpuPkg/CpuDxe/CpuDxe.c
UefiCpuPkg/CpuDxe/CpuDxe.h
UefiCpuPkg/CpuDxe/CpuDxe.inf
UefiCpuPkg/UefiCpuPkg.dsc

index 17513e758fc93f159f3c1fefe15d85296aa5ba1a..c755d8a2891a5ff3643fda17e253d1e9381428ed 100644 (file)
@@ -1247,6 +1247,8 @@ InitializeCpu (
   EFI_STATUS  Status;\r
   EFI_EVENT   IdleLoopEvent;\r
 \r
+  InitializeFloatingPointUnits ();\r
+\r
   //\r
   // Make sure interrupts are disabled\r
   //\r
index 9baccb25657092ad1babef104be876cdbef6c5a8..a75ec0593f64a4ede0793d87fb6374d6927fb5bd 100644 (file)
@@ -29,6 +29,7 @@
 #include <Library/DebugLib.h>\r
 #include <Library/MtrrLib.h>\r
 #include <Library/LocalApicLib.h>\r
+#include <Library/UefiCpuLib.h>\r
 #include <Guid/IdleLoopEvent.h>\r
 \r
 //\r
index 3373efab16f14b9fcbd85e741086bf11a1f2060d..b43506ef58667b7c969a1d84c49e4ec245d7d7c4 100644 (file)
@@ -38,6 +38,7 @@
   UefiBootServicesTableLib\r
   UefiDriverEntryPoint\r
   LocalApicLib\r
+  UefiCpuLib\r
 \r
 [Sources]\r
   CpuDxe.c\r
index 73dbbaf3a2fe6de5cfcee2bac324ef204c3b0078..505c69e4c83af221a7b1daf8b713ca52ba78724b 100644 (file)
@@ -34,6 +34,7 @@
   DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf\r
   DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf\r
   DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf\r
+  UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf\r
   IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf\r
   MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf\r
   PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r