1 2=== HOW TO USE VTF0 === 3 4Add this line to your FDF FV section: 5INF RuleOverride=RESET_VECTOR USE = IA32 UefiCpuPkg/ResetVector/Vtf0/Bin/ResetVector.inf 6(For X64 SEC/PEI change IA32 to X64 => 'USE = X64') 7 8In your FDF FFS file rules sections add: 9[Rule.Common.SEC.RESET_VECTOR] 10 FILE RAW = $(NAMED_GUID) { 11 RAW RAW |.raw 12 } 13 14=== VTF0 Boot Flow === 15 161. Transition to IA32 flat mode 172. Locate BFV (Boot Firmware Volume) by checking every 4kb boundary 183. Locate SEC image 194. X64 VTF0 transitions to X64 mode 205. Call SEC image entry point 21 22== VTF0 SEC input parameters == 23 24All inputs to SEC image are register based: 25EAX/RAX - Initial value of the EAX register (BIST: Built-in Self Test) 26DI - 'BP': boot-strap processor, or 'AP': application processor 27EBP/RBP - Pointer to the start of the Boot Firmware Volume 28 29=== HOW TO BUILD VTF0 === 30 31Dependencies: 32* Python 2.5~2.7 33* Nasm 2.03 or newer 34 35To rebuild the VTF0 binaries: 361. Change to VTF0 source dir: UefiCpuPkg/ResetVector/Vtf0 372. nasm and python should be in executable path 383. Run this command: 39 python Build.py 404. Binaries output will be in UefiCpuPkg/ResetVector/Vtf0/Bin 41 42