From: Jordan Justen Date: Thu, 16 Oct 2014 14:57:03 +0000 (-0700) Subject: MdeModulePkg BootScriptExecutorDxe: Use NASM compatible syntax X-Git-Tag: edk2-stable201903~6482 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=a230845601c7b0b5514dfe372b5e9bfa22f2f606;p=mirror_edk2.git 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 Cc: Feng Tian Cc: Star Zeng --- 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