]>
Commit | Line | Data |
---|---|---|
49ba9447 | 1 | TITLE SecEntry.asm\r |
2 | ;------------------------------------------------------------------------------\r | |
3 | ;*\r | |
56d7640a HT |
4 | ;* Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r |
5 | ;* This program and the accompanying materials\r | |
49ba9447 | 6 | ;* are licensed and made available under the terms and conditions of the BSD License\r |
7 | ;* which accompanies this distribution. The full text of the license may be found at\r | |
8 | ;* http://opensource.org/licenses/bsd-license.php\r | |
9 | ;*\r | |
10 | ;* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | ;* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | ;*\r | |
13 | ;* CpuAsm.asm\r | |
14 | ;*\r | |
15 | ;* Abstract:\r | |
16 | ;*\r | |
17 | ;------------------------------------------------------------------------------\r | |
18 | \r | |
42a83e80 | 19 | #include <Base.h>\r |
49ba9447 | 20 | \r |
21 | .686\r | |
22 | .model flat,C\r | |
23 | .code\r | |
24 | \r | |
25 | EXTERN SecCoreStartupWithStack:PROC\r | |
26 | \r | |
27 | ;\r | |
0913fadc | 28 | ; SecCore Entry Point\r |
49ba9447 | 29 | ;\r |
0913fadc | 30 | ; Processor is in flat protected mode\r |
49ba9447 | 31 | ;\r |
0913fadc | 32 | ; @param[in] EAX Initial value of the EAX register (BIST: Built-in Self Test)\r |
33 | ; @param[in] DI 'BP': boot-strap processor, or 'AP': application processor\r | |
34 | ; @param[in] EBP Pointer to the start of the Boot Firmware Volume\r | |
49ba9447 | 35 | ;\r |
0913fadc | 36 | ; @return None This routine does not return\r |
49ba9447 | 37 | ;\r |
38 | _ModuleEntryPoint PROC PUBLIC\r | |
39 | \r | |
40 | ;\r | |
41 | ; Load temporary stack top at very low memory. The C code\r | |
42 | ; can reload to a better address.\r | |
43 | ;\r | |
42a83e80 | 44 | mov eax, BASE_512KB\r |
49ba9447 | 45 | mov esp, eax\r |
46 | nop\r | |
47 | \r | |
48 | ;\r | |
49 | ; Call into C code\r | |
50 | ;\r | |
51 | push eax\r | |
49ba9447 | 52 | push ebp\r |
53 | call SecCoreStartupWithStack\r | |
54 | \r | |
55 | _ModuleEntryPoint ENDP\r | |
56 | \r | |
57 | END\r |