2 === HOW TO USE VTF0 ===
4 Add this line to your FDF FV section:
5 INF RuleOverride=RESET_VECTOR USE = IA32 UefiCpuPkg/ResetVector/Vtf0/Bin/ResetVector.inf
6 (For X64 SEC/PEI change IA32 to X64 => 'USE = X64')
8 In your FDF FFS file rules sections add:
9 [Rule.Common.SEC.RESET_VECTOR]
10 FILE RAW = $(NAMED_GUID) {
14 === VTF0 Boot Flow ===
16 1. Transition to IA32 flat mode
17 2. Locate BFV (Boot Firmware Volume) by checking every 4kb boundary
19 4. X64 VTF0 transitions to X64 mode
20 5. Call SEC image entry point
22 == VTF0 SEC input parameters ==
24 All inputs to SEC image are register based:
25 EAX/RAX - Initial value of the EAX register (BIST: Built-in Self Test)
26 DI - 'BP': boot-strap processor, or 'AP': application processor
27 EBP/RBP - Pointer to the start of the Boot Firmware Volume
29 === HOW TO BUILD VTF0 ===
35 To rebuild the VTF0 binaries:
36 1. Change to VTF0 source dir: UefiCpuPkg/ResetVector/Vtf0
37 2. nasm and python should be in executable path
40 4. Binaries output will be in UefiCpuPkg/ResetVector/Vtf0/Bin