diff options
Diffstat (limited to 'OvmfPkg/Sec')
-rw-r--r-- | OvmfPkg/Sec/SecMain.c | 7 | ||||
-rw-r--r-- | OvmfPkg/Sec/SecMain.inf | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/OvmfPkg/Sec/SecMain.c b/OvmfPkg/Sec/SecMain.c index 1dafa05..832c0e8 100644 --- a/OvmfPkg/Sec/SecMain.c +++ b/OvmfPkg/Sec/SecMain.c @@ -20,6 +20,7 @@ #include <Library/PeiServicesLib.h> #include <Ppi/TemporaryRamSupport.h> #include <Library/PcdLib.h> +#include <Library/UefiCpuLib.h> #include "SecMain.h" @@ -72,6 +73,12 @@ SecCoreStartupWithStack ( UINTN SizeOfTempRam; VOID *IdtPtr; + // + // Initialize floating point operating environment + // to be compliant with UEFI spec. + // + InitializeFloatingPointUnits (); + DEBUG ((EFI_D_ERROR, "SecCoreStartupWithStack(0x%x, 0x%x, 0x%x, 0x%x)\n", (UINT32)(UINTN)BootFirmwareVolumePtr, diff --git a/OvmfPkg/Sec/SecMain.inf b/OvmfPkg/Sec/SecMain.inf index 1646cce..de217b5 100644 --- a/OvmfPkg/Sec/SecMain.inf +++ b/OvmfPkg/Sec/SecMain.inf @@ -44,10 +44,13 @@ [Packages]
MdePkg/MdePkg.dec
+ UefiCpuPkg/UefiCpuPkg.dec
OvmfPkg/OvmfPkg.dec
[LibraryClasses]
BaseLib
+ UefiCpuLib
+ PcdLib
[Ppis]
gEfiTemporaryRamSupportPpiGuid # PPI ALWAYS_PRODUCED
|