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