diff options
author | Jordan Justen <jordan.l.justen@intel.com> | 2014-10-16 07:57:03 -0700 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2016-06-28 09:51:53 +0800 |
commit | a230845601c7b0b5514dfe372b5e9bfa22f2f606 (patch) | |
tree | 045f9e3bb7def2748055f65f4104ed004a2a143f | |
parent | 7e08bace8c18fd73d6aa4e753999d236086d191f (diff) | |
download | edk2-platforms-a230845601c7b0b5514dfe372b5e9bfa22f2f606.tar.xz |
MdeModulePkg BootScriptExecutorDxe: Use NASM compatible syntax
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>
-rw-r--r-- | MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/IA32/S3Asm.asm | 2 | ||||
-rw-r--r-- | MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/X64/S3Asm.asm | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/IA32/S3Asm.asm b/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/IA32/S3Asm.asm index 710546e114..a040517aad 100644 --- a/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/IA32/S3Asm.asm +++ b/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/IA32/S3Asm.asm @@ -40,7 +40,7 @@ AsmTransferControl PROC shrd ebx, ecx, 20
and ecx, 0fh
mov bx, cx
- mov @jmp_addr, ebx
+ mov [@jmp_addr], ebx
retf
@@:
DB 0b8h, 30h, 0 ; mov ax, 30h as selector
diff --git a/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/X64/S3Asm.asm b/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/X64/S3Asm.asm index 0b7432daf7..b2d85ae94f 100644 --- a/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/X64/S3Asm.asm +++ b/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/X64/S3Asm.asm @@ -32,7 +32,7 @@ AsmTransferControl PROC shrd ebx, ecx, 20
and ecx, 0fh
mov bx, cx
- mov @jmp_addr, ebx
+ mov [@jmp_addr], ebx
retf
@@:
DB 0b8h, 30h, 0 ; mov ax, 30h as selector
|