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