mirror of https://github.com/acidanthera/audk.git
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:
parent
0e18586429
commit
661cab5d6a
|
@ -1247,6 +1247,8 @@ InitializeCpu (
|
|||
EFI_STATUS Status;
|
||||
EFI_EVENT IdleLoopEvent;
|
||||
|
||||
InitializeFloatingPointUnits ();
|
||||
|
||||
//
|
||||
// Make sure interrupts are disabled
|
||||
//
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
#include <Library/DebugLib.h>
|
||||
#include <Library/MtrrLib.h>
|
||||
#include <Library/LocalApicLib.h>
|
||||
#include <Library/UefiCpuLib.h>
|
||||
#include <Guid/IdleLoopEvent.h>
|
||||
|
||||
//
|
||||
|
|
|
@ -38,6 +38,7 @@
|
|||
UefiBootServicesTableLib
|
||||
UefiDriverEntryPoint
|
||||
LocalApicLib
|
||||
UefiCpuLib
|
||||
|
||||
[Sources]
|
||||
CpuDxe.c
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue