]>
Commit | Line | Data |
---|---|---|
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 | |
16a16ea6 | 6 | ; SPDX-License-Identifier: BSD-2-Clause-Patent\r |
c8ec22a2 JY |
7 | ;\r |
8 | ;;\r | |
9 | \r | |
10 | BITS 16\r | |
11 | \r | |
12 | \r | |
13 | ;\r | |
14 | ; The layout of this file is fixed. The build tool makes assumption of the layout.\r | |
15 | ;\r | |
16 | \r | |
17 | ORG 0x0\r | |
18 | ;\r | |
19 | ; Reserved\r | |
20 | ;\r | |
21 | ReservedData: DD 0eeeeeeeeh, 0eeeeeeeeh\r | |
22 | \r | |
23 | ; ORG 0x10\r | |
24 | TIMES 0x10-($-$$) DB 0\r | |
25 | ;\r | |
26 | ; This is located at 0xFFFFFFD0h\r | |
27 | ;\r | |
28 | mov di, "AP"\r | |
29 | jmp ApStartup\r | |
30 | \r | |
31 | ; ORG 0x20\r | |
32 | \r | |
33 | TIMES 0x20-($-$$) DB 0\r | |
34 | \r | |
35 | ; Pointer to the entry point of the PEI core\r | |
36 | ; It is located at 0xFFFFFFE0, and is fixed up by some build tool\r | |
37 | ; So if the value 8..1 appears in the final FD image, tool failure occurs.\r | |
38 | ;\r | |
39 | PeiCoreEntryPoint: DD 0x12345678\r | |
40 | \r | |
41 | ;\r | |
42 | ; This is the handler for all kinds of exceptions. Since it's for debugging\r | |
43 | ; purpose only, nothing except a deadloop would be done here. Developers could\r | |
44 | ; analyze the cause of the exception if a debugger had been attached.\r | |
45 | ;\r | |
46 | InterruptHandler:\r | |
47 | jmp $\r | |
48 | iret\r | |
49 | \r | |
50 | ; ORG 0x30\r | |
51 | TIMES 0x30-($-$$) DB 0\r | |
52 | ;\r | |
53 | ; For IA32, the reset vector must be at 0xFFFFFFF0, i.e., 4G-16 byte\r | |
54 | ; Execution starts here upon power-on/platform-reset.\r | |
55 | ;\r | |
56 | ResetHandler:\r | |
57 | nop\r | |
58 | nop\r | |
59 | \r | |
60 | ApStartup:\r | |
61 | ;\r | |
62 | ; Jmp Rel16 instruction\r | |
63 | ; Use machine code directly in case of the assembler optimization\r | |
64 | ; SEC entry point relatvie address will be fixed up by some build tool.\r | |
65 | ;\r | |
66 | ; Typically, SEC entry point is the function _ModuleEntryPoint() defined in\r | |
67 | ; SecEntry.asm\r | |
68 | ;\r | |
69 | DB 0x0e9\r | |
70 | DW -3\r | |
71 | \r | |
72 | ; ORG 0x38\r | |
73 | \r | |
74 | TIMES 0x38-($-$$) DB 0\r | |
75 | ;\r | |
76 | ; Ap reset vector segment address is at 0xFFFFFFF8\r | |
77 | ; This will be fixed up by some build tool,\r | |
78 | ; so if the value 1..8 appears in the final FD image,\r | |
79 | ; tool failure occurs\r | |
80 | ;\r | |
81 | ApSegAddress: dd 0x12345678\r | |
82 | \r | |
83 | ; ORG 0x3c\r | |
84 | TIMES 0x3c-($-$$) DB 0\r | |
85 | ;\r | |
86 | ; BFV Base is at 0xFFFFFFFC\r | |
87 | ; This will be fixed up by some build tool,\r | |
88 | ; so if the value 1..8 appears in the final FD image,\r | |
89 | ; tool failure occurs.\r | |
90 | ;\r | |
91 | BfvBase: DD 0x12345678\r | |
92 | \r | |
93 | ;\r | |
94 | ; Nothing can go here, otherwise the layout of this file would change.\r | |
95 | ;\r | |
96 | \r | |
97 | ; END\r |