VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/OvmfPkg/Sec/X64/SecEntry.asm@ 78403

Last change on this file since 78403 was 58459, checked in by vboxsync, 9 years ago

EFI/Firmware: 'svn merge /vendor/edk2/UDK2010.SR1 /vendor/edk2/current .', reverting and removing files+dirs listed in ReadMe.vbox, resolving conflicts with help from ../UDK2014.SP1/. This is a raw untested merge.

  • Property svn:eol-style set to native
File size: 1.6 KB
Line 
1 TITLE SecEntry.asm
2;------------------------------------------------------------------------------
3;*
4;* Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>
5;* 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 <Base.h>
20
21.code
22
23EXTERN SecCoreStartupWithStack:PROC
24
25;
26; SecCore Entry Point
27;
28; Processor is in flat protected mode
29;
30; @param[in] RAX Initial value of the EAX register (BIST: Built-in Self Test)
31; @param[in] DI 'BP': boot-strap processor, or 'AP': application processor
32; @param[in] RBP Pointer to the start of the Boot Firmware Volume
33;
34; @return None This routine does not return
35;
36_ModuleEntryPoint PROC PUBLIC
37
38 ;
39 ; Load temporary RAM stack based on PCDs
40 ;
41 SEC_TOP_OF_STACK EQU (FixedPcdGet32 (PcdOvmfSecPeiTempRamBase) + \
42 FixedPcdGet32 (PcdOvmfSecPeiTempRamSize))
43 mov rsp, SEC_TOP_OF_STACK
44 nop
45
46 ;
47 ; Setup parameters and call SecCoreStartupWithStack
48 ; rcx: BootFirmwareVolumePtr
49 ; rdx: TopOfCurrentStack
50 ;
51 mov rcx, rbp
52 mov rdx, rsp
53 sub rsp, 20h
54 call SecCoreStartupWithStack
55
56_ModuleEntryPoint ENDP
57
58END
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette