]> git.proxmox.com Git - mirror_edk2.git/blame - IntelFspPkg/FspSecCore/Ia32/ResetVec.asm16
Fix FSP GCC error on FspApiCallingCheck().
[mirror_edk2.git] / IntelFspPkg / FspSecCore / Ia32 / ResetVec.asm16
CommitLineData
c8ec22a2
JY
1;------------------------------------------------------------------------------\r
2;\r
3; Copyright (c) 2014, 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; Abstract:\r
13;\r
14; Reset Vector Data structure\r
15; This structure is located at 0xFFFFFFC0\r
16;\r
17;------------------------------------------------------------------------------\r
18\r
19 .model tiny\r
20 .686p\r
21 .stack 0h\r
22 .code\r
23\r
24;\r
25; The layout of this file is fixed. The build tool makes assumption of the layout.\r
26;\r
27\r
28 ORG 0h\r
29;\r
30; Reserved\r
31;\r
32ReservedData DD 0eeeeeeeeh, 0eeeeeeeeh\r
33\r
34 ORG 10h\r
35;\r
36; This is located at 0xFFFFFFD0h\r
37;\r
38 mov di, "AP"\r
39 jmp ApStartup\r
40\r
41 ORG 20h\r
42;\r
43; Pointer to the entry point of the PEI core\r
44; It is located at 0xFFFFFFE0, and is fixed up by some build tool\r
45; So if the value 8..1 appears in the final FD image, tool failure occurs.\r
46;\r
47PeiCoreEntryPoint DD 12345678h\r
48\r
49;\r
50; This is the handler for all kinds of exceptions. Since it's for debugging\r
51; purpose only, nothing except a deadloop would be done here. Developers could\r
52; analyze the cause of the exception if a debugger had been attached.\r
53;\r
54InterruptHandler PROC\r
55 jmp $\r
56 iret\r
57InterruptHandler ENDP\r
58\r
59 ORG 30h\r
60;\r
61; For IA32, the reset vector must be at 0xFFFFFFF0, i.e., 4G-16 byte\r
62; Execution starts here upon power-on/platform-reset.\r
63;\r
64ResetHandler:\r
65 nop\r
66 nop\r
67\r
68ApStartup:\r
69 ;\r
70 ; Jmp Rel16 instruction\r
71 ; Use machine code directly in case of the assembler optimization\r
72 ; SEC entry point relatvie address will be fixed up by some build tool.\r
73 ;\r
74 ; Typically, SEC entry point is the function _ModuleEntryPoint() defined in\r
75 ; SecEntry.asm\r
76 ;\r
77 DB 0e9h\r
78 DW -3\r
79\r
80\r
81 ORG 38h\r
82;\r
83; Ap reset vector segment address is at 0xFFFFFFF8\r
84; This will be fixed up by some build tool,\r
85; so if the value 1..8 appears in the final FD image,\r
86; tool failure occurs\r
87;\r
88ApSegAddress dd 12345678h\r
89\r
90 ORG 3ch\r
91;\r
92; BFV Base is at 0xFFFFFFFC\r
93; This will be fixed up by some build tool,\r
94; so if the value 1..8 appears in the final FD image,\r
95; tool failure occurs.\r
96;\r
97BfvBase DD 12345678h\r
98\r
99;\r
100; Nothing can go here, otherwise the layout of this file would change.\r
101;\r
102\r
103 END\r