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