VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/OvmfPkg/Sec/X64/SecEntry.S@ 77599

Last change on this file since 77599 was 58466, checked in by vboxsync, 9 years ago

EFI/Firmware: Merged in the svn:eol-style, svn:mime-type and trailing whitespace cleanup that was done after the initial UDK2014.SP1 import: svn merge /vendor/edk2/UDK2014.SP1 /vendor/edk2/current .

  • Property svn:eol-style set to native
File size: 1.7 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
20#include <Base.h>
21
22#EXTERN ASM_PFX(SecCoreStartupWithStack)
23
24#
25# SecCore Entry Point
26#
27# Processor is in flat protected mode
28#
29# @param[in] RAX Initial value of the EAX register (BIST: Built-in Self Test)
30# @param[in] DI 'BP': boot-strap processor, or 'AP': application processor
31# @param[in] RBP Pointer to the start of the Boot Firmware Volume
32#
33# @return None This routine does not return
34#
35ASM_GLOBAL ASM_PFX(_ModuleEntryPoint)
36ASM_PFX(_ModuleEntryPoint):
37
38 #
39 # Load temporary stack top at very low memory. The C code
40 # can reload to a better address.
41 #
42 .set SEC_TOP_OF_STACK, FixedPcdGet32 (PcdOvmfSecPeiTempRamBase) + \
43 FixedPcdGet32 (PcdOvmfSecPeiTempRamSize)
44 movq $SEC_TOP_OF_STACK, %rsp
45 nop
46
47 #
48 # Setup parameters and call SecCoreStartupWithStack
49 # rcx: BootFirmwareVolumePtr
50 # rdx: TopOfCurrentStack
51 #
52 movq %rbp, %rcx
53 movq %rsp, %rdx
54 subq $0x20, %rsp
55 call ASM_PFX(SecCoreStartupWithStack)
56
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