]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/Sec/X64/SecEntry.asm
OvmfPkg X64 ResetVector: Move page tables from 512KB to 8MB
[mirror_edk2.git] / OvmfPkg / Sec / X64 / SecEntry.asm
CommitLineData
49ba9447 1 TITLE SecEntry.asm\r
2;------------------------------------------------------------------------------\r
3;*\r
56d7640a
HT
4;* Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
5;* This program and the accompanying materials\r
49ba9447 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;* CpuAsm.asm\r
14;*\r
15;* Abstract:\r
16;*\r
17;------------------------------------------------------------------------------\r
18\r
42a83e80 19#include <Base.h>\r
49ba9447 20\r
21.code\r
22\r
23EXTERN SecCoreStartupWithStack:PROC\r
24\r
25;\r
0913fadc 26; SecCore Entry Point\r
49ba9447 27;\r
0913fadc 28; Processor is in flat protected mode\r
49ba9447 29;\r
0913fadc 30; @param[in] RAX Initial value of the EAX register (BIST: Built-in Self Test)\r
31; @param[in] DI 'BP': boot-strap processor, or 'AP': application processor\r
32; @param[in] RBP Pointer to the start of the Boot Firmware Volume\r
49ba9447 33;\r
0913fadc 34; @return None This routine does not return\r
49ba9447 35;\r
36_ModuleEntryPoint PROC PUBLIC\r
37\r
38 ;\r
39 ; Load temporary stack top at very low memory. The C code\r
40 ; can reload to a better address.\r
41 ;\r
42a83e80 42 mov rsp, BASE_512KB\r
49ba9447 43 nop\r
44\r
45 ;\r
46 ; Setup parameters and call SecCoreStartupWithStack\r
47 ; rcx: BootFirmwareVolumePtr\r
0913fadc 48 ; rdx: TopOfCurrentStack\r
49ba9447 49 ;\r
50 mov rcx, rbp\r
0913fadc 51 mov rdx, rsp\r
82dae5ef 52 sub rsp, 20h\r
49ba9447 53 call SecCoreStartupWithStack\r
54\r
55_ModuleEntryPoint ENDP\r
56\r
57END\r