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