]> git.proxmox.com Git - mirror_edk2.git/commitdiff
UefiCpuPkg: Avoid "error A2085" when DDK3790 tool chain is used
authorScott Duplichan <scott@notabs.org>
Thu, 9 Apr 2015 03:09:17 +0000 (03:09 +0000)
committervanjeff <vanjeff@Edk2>
Thu, 9 Apr 2015 03:09:17 +0000 (03:09 +0000)
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 <scott@notabs.org>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17134 6f19259b-4bc3-4df7-8a09-765794883524

UefiCpuPkg/CpuDxe/Ia32/MpAsm.asm

index d476829b917dc09086baabb5829905e6210492f4..09579f251ee6656d1b2d0a9fe7aba3c4d7a976cf 100644 (file)
@@ -11,7 +11,8 @@
 ;\r
 ;------------------------------------------------------------------------------\r
 \r
-.586p\r
+.686\r
+.xmm\r
 .model flat, C\r
 \r
 extern mTopOfApCommonStack:DWORD\r