1 #------------------------------------------------------------------------------
3 # Copyright (c) 2013, Intel Corporation. All rights reserved.<BR>
4 # This program and the accompanying materials
5 # are licensed and made available under the terms and conditions of the BSD License
6 # which accompanies this distribution. The full text of the license may be found at
7 # http://opensource.org/licenses/bsd-license.php.
9 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 # This is the code that begins in protected mode.
19 # It will transfer the control to pei core.
21 #------------------------------------------------------------------------------
23 ASM_GLOBAL ASM_PFX(SecStartup)
26 ASM_GLOBAL ASM_PFX(PcdGet32 (PcdPayloadFdMemBase))
31 # Processor is in flat protected mode
33 # @param[in] EAX Initial value of the EAX register (BIST: Built-in Self Test)
34 # @param[in] DI 'BP': boot-strap processor, or 'AP': application processor
35 # @param[in] EBP Pointer to the start of the Boot Firmware Volume
37 # @return None This routine does not return
39 ASM_GLOBAL ASM_PFX(_ModuleEntryPoint)
40 ASM_PFX(_ModuleEntryPoint):
42 # Disable all the interrupts
47 # Construct the temporary memory at 0x80000, length 0x10000
49 movl $(BASE_512KB + SIZE_64KB), %esp
52 # Pass BFV into the PEI Core
54 pushl ASM_PFX(PcdGet32 (PcdPayloadFdMemBase))
57 # Pass stack base into the PEI Core
62 # Pass stack size into the PEI Core
67 # Pass Control into the PEI Core
72 # Never return to here