]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/Sec/Ia32/SecEntry.asm
Add initial version of Open Virtual Machine Firmware (OVMF) platform.
[mirror_edk2.git] / OvmfPkg / Sec / Ia32 / 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 .686\r
22 .model flat,C\r
23 .code\r
24\r
25EXTERN SecCoreStartupWithStack:PROC\r
26\r
27;\r
28; SecCore Entry Point\r
29;\r
30; Processor is in flat protected mode\r
31;\r
32; @param ESI Pointer to SEC Core Entry Point (this function)\r
33; @param EDI Pointer to PEI Core Entry Point\r
34; @param EBP Pointer to the start of the Boot Firmware Volume\r
35;\r
36; @return None\r
37;\r
38;\r
39_ModuleEntryPoint PROC PUBLIC\r
40\r
41 ;\r
42 ; Load temporary stack top at very low memory. The C code\r
43 ; can reload to a better address.\r
44 ;\r
45 mov eax, INITIAL_TOP_OF_STACK\r
46 mov esp, eax\r
47 nop\r
48\r
49 ;\r
50 ; Call into C code\r
51 ;\r
52 push eax\r
53 push edi\r
54 push esi\r
55 push ebp\r
56 call SecCoreStartupWithStack\r
57\r
58_ModuleEntryPoint ENDP\r
59\r
60END\r