]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg DebugSupportDxe: Fix build error with GNU assembler
authorJordan Justen <jordan.l.justen@intel.com>
Wed, 17 Dec 2014 05:16:48 +0000 (05:16 +0000)
committervanjeff <vanjeff@Edk2>
Wed, 17 Dec 2014 05:16:48 +0000 (05:16 +0000)
The GNU assembler (2.24.51.20140918) is failing to build when movw is used on this instruction.
Instead use the mov instruction, which matches the other cases of loading segment registers.

The error message seen is:
  AsmFuncs.iii:283: Error: incorrect register `%rax' used with `w' suffix

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16529 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Universal/DebugSupportDxe/X64/AsmFuncs.S

index 9783ec6b803806a027e40a1bc243ea0da5ebff02..7f0919ee1b43016d4ea0f1fea8c8f318d04e300f 100644 (file)
@@ -280,7 +280,7 @@ ExtraPushDone:
 \r
                 mov     %ds, %rax\r
                 pushq   %rax\r
-                movw    %es, %rax\r
+                mov     %es, %rax\r
                 pushq   %rax\r
                 mov     %fs, %rax\r
                 pushq   %rax\r