summaryrefslogtreecommitdiffstats
path: root/UefiCpuPkg
diff options
context:
space:
mode:
authorMichael Kinney <michael.d.kinney@intel.com>2017-05-04 15:33:06 -0700
committerMichael Kinney <michael.d.kinney@intel.com>2017-05-19 14:15:15 -0700
commitb9dbc03e5a4c90b9e3efe0e0e8c014c428528261 (patch)
tree6dfbfe5b82fc005949b989762efc2f5504452f10 /UefiCpuPkg
parent5b78f30d81d7e536df37bafb48c4cb5b6d44edb8 (diff)
downloadedk2-b9dbc03e5a4c90b9e3efe0e0e8c014c428528261.tar.gz
edk2-b9dbc03e5a4c90b9e3efe0e0e8c014c428528261.tar.bz2
edk2-b9dbc03e5a4c90b9e3efe0e0e8c014c428528261.zip
UefiCpuPkg: Use FINIT instead of hex values
https://bugzilla.tianocore.org/show_bug.cgi?id=560 Update X64 NASM file to match IA32 NASM file and use FINIT instruction instead of hand assembled hex values for the FINIT instruction. Cc: Jeff Fan <jeff.fan@intel.com> Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Jeff Fan <jeff.fan@intel.com>
Diffstat (limited to 'UefiCpuPkg')
-rw-r--r--UefiCpuPkg/Library/BaseUefiCpuLib/X64/InitializeFpu.nasm5
1 files changed, 1 insertions, 4 deletions
diff --git a/UefiCpuPkg/Library/BaseUefiCpuLib/X64/InitializeFpu.nasm b/UefiCpuPkg/Library/BaseUefiCpuLib/X64/InitializeFpu.nasm
index 404c199b35..d94a60f13e 100644
--- a/UefiCpuPkg/Library/BaseUefiCpuLib/X64/InitializeFpu.nasm
+++ b/UefiCpuPkg/Library/BaseUefiCpuLib/X64/InitializeFpu.nasm
@@ -41,10 +41,7 @@ ASM_PFX(InitializeFloatingPointUnits):
;
; Initialize floating point units
;
- ; The following opcodes stand for instruction 'finit'
- ; to be supported by some 64-bit assemblers
- ;
- DB 0x9B, 0xDB, 0xE3
+ finit
fldcw [mFpuControlWord]
;