;------------------------------------------------------------------------------\r
;\r
-; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
+; Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.<BR>\r
; SPDX-License-Identifier: BSD-2-Clause-Patent\r
;\r
; Module Name:\r
mov cr0, eax ; enable paging\r
retf ; topmost 2 dwords hold the address\r
.0:\r
- DB 0x67, 0x48 ; 32-bit address size, 64-bit operand size\r
- mov ebx, [esp] ; mov rbx, [esp]\r
- DB 0x67, 0x48\r
- mov ecx, [esp + 8] ; mov rcx, [esp + 8]\r
- DB 0x67, 0x48\r
- mov edx, [esp + 0x10] ; mov rdx, [esp + 10h]\r
- DB 0x67, 0x48\r
- mov esp, [esp + 0x18] ; mov rsp, [esp + 18h]\r
- DB 0x48\r
- add esp, -0x20 ; add rsp, -20h\r
- call ebx ; call rbx\r
+BITS 64\r
+ mov rbx, [esp]\r
+ mov rcx, [esp + 8]\r
+ mov rdx, [esp + 0x10]\r
+ mov rsp, [esp + 0x18]\r
+ add rsp, -0x20\r
+ call rbx\r
hlt ; no one should get here\r
\r