From 718abab1121bfae91b9d4daa1d9fa17879d9ed32 Mon Sep 17 00:00:00 2001 From: Scott Duplichan Date: Thu, 9 Apr 2015 03:09:17 +0000 Subject: [PATCH] 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 --- UefiCpuPkg/CpuDxe/Ia32/MpAsm.asm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.2