From b9dbc03e5a4c90b9e3efe0e0e8c014c428528261 Mon Sep 17 00:00:00 2001 From: Michael Kinney Date: Thu, 4 May 2017 15:33:06 -0700 Subject: [PATCH] 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 --- UefiCpuPkg/Library/BaseUefiCpuLib/X64/InitializeFpu.nasm | 5 +---- 1 file changed, 1 insertion(+), 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] ; -- 2.39.2