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