From e23aa28ff24f97ec5dc032d7f84e99671a809fbd Mon Sep 17 00:00:00 2001 From: Michael Kinney Date: Thu, 4 May 2017 15:33:06 -0700 Subject: 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 Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael D Kinney Reviewed-by: Jeff Fan (cherry picked from commit b9dbc03e5a4c90b9e3efe0e0e8c014c428528261) --- Core/UefiCpuPkg/Library/BaseUefiCpuLib/X64/InitializeFpu.nasm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'Core') diff --git a/Core/UefiCpuPkg/Library/BaseUefiCpuLib/X64/InitializeFpu.nasm b/Core/UefiCpuPkg/Library/BaseUefiCpuLib/X64/InitializeFpu.nasm index 404c199b35..d94a60f13e 100644 --- a/Core/UefiCpuPkg/Library/BaseUefiCpuLib/X64/InitializeFpu.nasm +++ b/Core/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] ; -- cgit v1.2.3