From: Scott Duplichan Date: Thu, 9 Apr 2015 03:09:17 +0000 (+0000) Subject: UefiCpuPkg: Avoid "error A2085" when DDK3790 tool chain is used X-Git-Tag: edk2-stable201903~10079 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=718abab1121bfae91b9d4daa1d9fa17879d9ed32 UefiCpuPkg: Avoid "error A2085" when DDK3790 tool chain is used The DDK3790 tool chain fails when the PAUSE instruction is assembled: error A2085: instruction or register not accepted in current CPU mode The solution is to use the .686 directive along with the .xmm directive. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Scott Duplichan Reviewed-by: Jeff Fan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17134 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/UefiCpuPkg/CpuDxe/Ia32/MpAsm.asm b/UefiCpuPkg/CpuDxe/Ia32/MpAsm.asm index d476829b91..09579f251e 100644 --- a/UefiCpuPkg/CpuDxe/Ia32/MpAsm.asm +++ b/UefiCpuPkg/CpuDxe/Ia32/MpAsm.asm @@ -11,7 +11,8 @@ ; ;------------------------------------------------------------------------------ -.586p +.686 +.xmm .model flat, C extern mTopOfApCommonStack:DWORD