summaryrefslogtreecommitdiff
path: root/UefiCpuPkg/CpuDxe
diff options
context:
space:
mode:
authorrsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524>2012-07-06 05:49:53 +0000
committerrsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524>2012-07-06 05:49:53 +0000
commit661cab5d6a45308dcb7fb37c646e32efc1a087c4 (patch)
treecc3ec15d9c8395ff8ebfc3adb87e31e8075d5426 /UefiCpuPkg/CpuDxe
parent0e18586429b3274a3b899389c5ece8ee32b15968 (diff)
downloadedk2-platforms-661cab5d6a45308dcb7fb37c646e32efc1a087c4.tar.xz
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
Diffstat (limited to 'UefiCpuPkg/CpuDxe')
-rw-r--r--UefiCpuPkg/CpuDxe/CpuDxe.c2
-rw-r--r--UefiCpuPkg/CpuDxe/CpuDxe.h1
-rw-r--r--UefiCpuPkg/CpuDxe/CpuDxe.inf1
3 files changed, 4 insertions, 0 deletions
diff --git a/UefiCpuPkg/CpuDxe/CpuDxe.c b/UefiCpuPkg/CpuDxe/CpuDxe.c
index 17513e758f..c755d8a289 100644
--- a/UefiCpuPkg/CpuDxe/CpuDxe.c
+++ b/UefiCpuPkg/CpuDxe/CpuDxe.c
@@ -1247,6 +1247,8 @@ InitializeCpu (
EFI_STATUS Status;
EFI_EVENT IdleLoopEvent;
+ InitializeFloatingPointUnits ();
+
//
// Make sure interrupts are disabled
//
diff --git a/UefiCpuPkg/CpuDxe/CpuDxe.h b/UefiCpuPkg/CpuDxe/CpuDxe.h
index 9baccb2565..a75ec0593f 100644
--- a/UefiCpuPkg/CpuDxe/CpuDxe.h
+++ b/UefiCpuPkg/CpuDxe/CpuDxe.h
@@ -29,6 +29,7 @@
#include <Library/DebugLib.h>
#include <Library/MtrrLib.h>
#include <Library/LocalApicLib.h>
+#include <Library/UefiCpuLib.h>
#include <Guid/IdleLoopEvent.h>
//
diff --git a/UefiCpuPkg/CpuDxe/CpuDxe.inf b/UefiCpuPkg/CpuDxe/CpuDxe.inf
index 3373efab16..b43506ef58 100644
--- a/UefiCpuPkg/CpuDxe/CpuDxe.inf
+++ b/UefiCpuPkg/CpuDxe/CpuDxe.inf
@@ -38,6 +38,7 @@
UefiBootServicesTableLib
UefiDriverEntryPoint
LocalApicLib
+ UefiCpuLib
[Sources]
CpuDxe.c