]> git.proxmox.com Git - mirror_edk2.git/blame - IntelFspPkg/FspSecCore/Vtf0/Ia16/ResetVec.asm16
Add IntelFspPkg to support create FSP bin based on EDKII.
[mirror_edk2.git] / IntelFspPkg / FspSecCore / Vtf0 / Ia16 / ResetVec.asm16
CommitLineData
c8ec22a2
JY
1;; @file\r
2; Reset Vector Data structure\r
3; This structure is located at 0xFFFFFFC0\r
4;\r
5; Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>\r
6; This program and the accompanying materials\r
7; are licensed and made available under the terms and conditions of the BSD License\r
8; which accompanies this distribution. The full text of the license may be found at\r
9; http://opensource.org/licenses/bsd-license.php.\r
10;\r
11; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13;\r
14;;\r
15\r
16BITS 16\r
17\r
18\r
19;\r
20; The layout of this file is fixed. The build tool makes assumption of the layout.\r
21;\r
22\r
23ORG 0x0\r
24;\r
25; Reserved\r
26;\r
27ReservedData: DD 0eeeeeeeeh, 0eeeeeeeeh\r
28\r
29 ; ORG 0x10\r
30 TIMES 0x10-($-$$) DB 0\r
31;\r
32; This is located at 0xFFFFFFD0h\r
33;\r
34 mov di, "AP"\r
35 jmp ApStartup\r
36\r
37 ; ORG 0x20\r
38\r
39 TIMES 0x20-($-$$) DB 0\r
40\r
41; Pointer to the entry point of the PEI core\r
42; It is located at 0xFFFFFFE0, and is fixed up by some build tool\r
43; So if the value 8..1 appears in the final FD image, tool failure occurs.\r
44;\r
45PeiCoreEntryPoint: DD 0x12345678\r
46\r
47;\r
48; This is the handler for all kinds of exceptions. Since it's for debugging\r
49; purpose only, nothing except a deadloop would be done here. Developers could\r
50; analyze the cause of the exception if a debugger had been attached.\r
51;\r
52InterruptHandler:\r
53 jmp $\r
54 iret\r
55\r
56 ; ORG 0x30\r
57 TIMES 0x30-($-$$) DB 0\r
58;\r
59; For IA32, the reset vector must be at 0xFFFFFFF0, i.e., 4G-16 byte\r
60; Execution starts here upon power-on/platform-reset.\r
61;\r
62ResetHandler:\r
63 nop\r
64 nop\r
65\r
66ApStartup:\r
67 ;\r
68 ; Jmp Rel16 instruction\r
69 ; Use machine code directly in case of the assembler optimization\r
70 ; SEC entry point relatvie address will be fixed up by some build tool.\r
71 ;\r
72 ; Typically, SEC entry point is the function _ModuleEntryPoint() defined in\r
73 ; SecEntry.asm\r
74 ;\r
75 DB 0x0e9\r
76 DW -3\r
77\r
78 ; ORG 0x38\r
79\r
80 TIMES 0x38-($-$$) DB 0\r
81;\r
82; Ap reset vector segment address is at 0xFFFFFFF8\r
83; This will be fixed up by some build tool,\r
84; so if the value 1..8 appears in the final FD image,\r
85; tool failure occurs\r
86;\r
87ApSegAddress: dd 0x12345678\r
88\r
89 ; ORG 0x3c\r
90 TIMES 0x3c-($-$$) DB 0\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 0x12345678\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