UefiCpuPkg CpuDxe: Call UefiCpuLib.InitializeFloatingPointUnits () to initialize X87 FPU Control Word for BSP.

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
This commit is contained in:
rsun3 2012-07-06 05:49:53 +00:00
parent 0e18586429
commit 661cab5d6a
4 changed files with 5 additions and 0 deletions

View File

@ -1247,6 +1247,8 @@ InitializeCpu (
EFI_STATUS Status;
EFI_EVENT IdleLoopEvent;
InitializeFloatingPointUnits ();
//
// Make sure interrupts are disabled
//

View File

@ -29,6 +29,7 @@
#include <Library/DebugLib.h>
#include <Library/MtrrLib.h>
#include <Library/LocalApicLib.h>
#include <Library/UefiCpuLib.h>
#include <Guid/IdleLoopEvent.h>
//

View File

@ -38,6 +38,7 @@
UefiBootServicesTableLib
UefiDriverEntryPoint
LocalApicLib
UefiCpuLib
[Sources]
CpuDxe.c

View File

@ -34,6 +34,7 @@
DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf
IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf