]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg BootScriptExecutorDxe: Use NASM compatible syntax
authorJordan Justen <jordan.l.justen@intel.com>
Thu, 16 Oct 2014 14:57:03 +0000 (07:57 -0700)
committerLiming Gao <liming.gao@intel.com>
Tue, 28 Jun 2016 01:51:53 +0000 (09:51 +0800)
Without this change, after converting this code to NASM, this error
will be reported:
error: invalid combination of opcode and operands

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Cc: Feng Tian <feng.tian@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/IA32/S3Asm.asm
MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/X64/S3Asm.asm

index 710546e1149aec29a48fa6f99418b2db817d9c54..a040517aad43a82790cfaaa7ae9473ada535800e 100644 (file)
@@ -40,7 +40,7 @@ AsmTransferControl  PROC
     shrd  ebx, ecx, 20\r
     and   ecx, 0fh          \r
     mov   bx, cx          \r
-    mov   @jmp_addr, ebx\r
+    mov   [@jmp_addr], ebx\r
     retf\r
 @@:\r
     DB    0b8h, 30h, 0      ; mov ax, 30h as selector\r
index 0b7432daf7cfe99e6d61d6c949f4fa4cfec716f0..b2d85ae94f9bfc198ee32043a680a760d5336009 100644 (file)
@@ -32,7 +32,7 @@ AsmTransferControl  PROC
     shrd  ebx, ecx, 20\r
     and   ecx, 0fh          \r
     mov   bx, cx          \r
-    mov   @jmp_addr, ebx\r
+    mov   [@jmp_addr], ebx\r
     retf\r
 @@:\r
     DB    0b8h, 30h, 0      ; mov ax, 30h as selector\r