]>
Commit | Line | Data |
---|---|---|
ca162103 | 1 | TITLE EnterDxeCore.asm: Assembly code for the entering DxeCore\r |
2 | ;------------------------------------------------------------------------------\r | |
3 | ;*\r | |
4 | ;* Copyright 2006, Intel Corporation \r | |
5 | ;* All rights reserved. This program and the accompanying materials \r | |
6 | ;* are licensed and made available under the terms and conditions of the BSD License \r | |
7 | ;* which accompanies this distribution. The full text of the license may be found at \r | |
8 | ;* http://opensource.org/licenses/bsd-license.php \r | |
9 | ;* \r | |
10 | ;* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
11 | ;* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
12 | ;* \r | |
13 | ;* EnterDxeCore.asm\r | |
14 | ;* \r | |
15 | ;* Abstract:\r | |
16 | ;*\r | |
17 | ;------------------------------------------------------------------------------\r | |
18 | \r | |
19 | .code\r | |
20 | \r | |
21 | ;\r | |
22 | ; VOID\r | |
23 | ; EnterDxeMain (\r | |
24 | ; IN VOID *StackTop, // rcx\r | |
25 | ; IN VOID *DxeCoreEntryPoint, // rdx\r | |
26 | ; IN VOID *Hob, // r8\r | |
27 | ; IN VOID *PageTable // r9\r | |
28 | ; )\r | |
29 | ;\r | |
30 | EnterDxeMain PROC\r | |
31 | \r | |
32 | mov cr3, r9\r | |
33 | sub rcx, 32\r | |
34 | mov rsp, rcx\r | |
35 | mov rcx, r8\r | |
36 | push 0\r | |
37 | jmp rdx\r | |
38 | \r | |
39 | ; should never get here\r | |
40 | jmp $\r | |
41 | ret\r | |
42 | \r | |
43 | EnterDxeMain ENDP\r | |
44 | \r | |
45 | END\r |