CorebootModulePkg: Reformat asm constant to avoid gcc assembler fail
[mirror_edk2.git] / CorebootModulePkg / SecCore / Ia32 / SecEntry.S
CommitLineData
fce4ecd9
MM
1#------------------------------------------------------------------------------\r
2#\r
3# Copyright (c) 2013, Intel Corporation. All rights reserved.<BR>\r
4# This program and the accompanying materials\r
5# are licensed and made available under the terms and conditions of the BSD License\r
6# which accompanies this distribution. The full text of the license may be found at\r
7# http://opensource.org/licenses/bsd-license.php.\r
8#\r
9# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
10# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
11#\r
12# Module Name:\r
13#\r
14# SecEntry.S\r
15#\r
16# Abstract:\r
17#\r
18# This is the code that begins in protected mode.\r
19# It will transfer the control to pei core.\r
20#\r
21#------------------------------------------------------------------------------\r
22\r
23ASM_GLOBAL ASM_PFX(SecStartup)\r
24\r
25# Pcds\r
26ASM_GLOBAL ASM_PFX(PcdGet32 (PcdPayloadFdMemBase))\r
27\r
28#\r
29# SecCore Entry Point\r
30#\r
31# Processor is in flat protected mode\r
32#\r
33# @param[in] EAX Initial value of the EAX register (BIST: Built-in Self Test)\r
34# @param[in] DI 'BP': boot-strap processor, or 'AP': application processor\r
35# @param[in] EBP Pointer to the start of the Boot Firmware Volume\r
36#\r
37# @return None This routine does not return\r
38#\r
39ASM_GLOBAL ASM_PFX(_ModuleEntryPoint)\r
40ASM_PFX(_ModuleEntryPoint):\r
41 #\r
42 # Disable all the interrupts\r
43 #\r
44 cli\r
45 \r
46 #\r
47 # Construct the temporary memory at 0x80000, length 0x10000\r
48 #\r
b6242db9 49 movl $(BASE_512KB + SIZE_64KB), %esp\r
fce4ecd9
MM
50\r
51 #\r
52 # Pass BFV into the PEI Core\r
53 #\r
54 pushl ASM_PFX(PcdGet32 (PcdPayloadFdMemBase))\r
55 \r
56 #\r
57 # Pass stack base into the PEI Core\r
58 #\r
59 pushl $BASE_512KB\r
60\r
61 #\r
62 # Pass stack size into the PEI Core\r
63 #\r
64 pushl $SIZE_64KB\r
65\r
66 #\r
67 # Pass Control into the PEI Core\r
68 #\r
69 call SecStartup\r
70 \r
71 #\r
72 # Never return to here\r
73 #\r
74 jmp .\r