1 ;------------------------------------------------------------------------------
3 ; Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>
4 ; SPDX-License-Identifier: BSD-2-Clause-Patent
12 ; Reset Vector Data structure
13 ; This structure is located at 0xFFFFF000
15 ;------------------------------------------------------------------------------
22 ; The layout of this file is fixed. The build tool makes assumption of the layout.
30 ; We enter here with CS:IP = 0xFF00:0x0000. Do a far-jump to change CS to 0xF000
31 ; and IP to ApStartup.
35 jmp 0xF000:0xF000+ApStartup
37 TIMES 0xFC0-($-$$) nop
40 ; This should be at 0xFFFFFFC0
46 ReservedData: DD 0eeeeeeeeh, 0eeeeeeeeh
48 TIMES 0xFD0-($-$$) nop
50 ; This is located at 0xFFFFFFD0
55 TIMES 0xFE0-($-$$) nop
57 ; Pointer to the entry point of the PEI core
58 ; It is located at 0xFFFFFFE0, and is fixed up by some build tool
59 ; So if the value 8..1 appears in the final FD image, tool failure occurs.
61 PeiCoreEntryPoint: DD 87654321h
64 ; This is the handler for all kinds of exceptions. Since it's for debugging
65 ; purpose only, nothing except a dead loop would be done here. Developers could
66 ; analyze the cause of the exception if a debugger had been attached.
68 global ASM_PFX(InterruptHandler)
69 ASM_PFX(InterruptHandler):
73 TIMES 0xFF0-($-$$) nop
75 ; For IA32, the reset vector must be at 0xFFFFFFF0, i.e., 4G-16 byte
76 ; Execution starts here upon power-on/platform-reset.
83 ; Jmp Rel16 instruction
84 ; Use machine code directly in case of the assembler optimization
85 ; SEC entry point relative address will be fixed up by some build tool.
87 ; Typically, SEC entry point is the function _ModuleEntryPoint() defined in
94 TIMES 0xFF8-($-$$) nop
96 ; Ap reset vector segment address is at 0xFFFFFFF8
97 ; This will be fixed up by some build tool,
98 ; so if the value 1..8 appears in the final FD image,
101 ApSegAddress: dd 12345678h
103 TIMES 0xFFC-($-$$) nop
105 ; BFV Base is at 0xFFFFFFFC
106 ; This will be fixed up by some build tool,
107 ; so if the value 1..8 appears in the final FD image,
108 ; tool failure occurs.
110 BfvBase: DD 12345678h
113 ; Nothing can go here, otherwise the layout of this file would change.