]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/Sec/X64/SecEntry.asm
Update the copyright notice format
[mirror_edk2.git] / OvmfPkg / Sec / X64 / SecEntry.asm
CommitLineData
49ba9447 1 TITLE SecEntry.asm\r
2;------------------------------------------------------------------------------\r
3;*\r
4;* Copyright 2006 - 2009, 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;* CpuAsm.asm\r
14;*\r
15;* Abstract:\r
16;*\r
17;------------------------------------------------------------------------------\r
18\r
19#include "SecMain.h"\r
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
42 mov rsp, INITIAL_TOP_OF_STACK\r
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