From: Michael Kinney Date: Thu, 4 May 2017 22:33:06 +0000 (-0700) Subject: UefiCpuPkg: Use FINIT instead of hex values X-Git-Tag: edk2-stable201903~4012 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=b9dbc03e5a4c90b9e3efe0e0e8c014c428528261;ds=sidebyside 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 --- 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] ;