]> git.proxmox.com Git - mirror_edk2.git/blame - ArmVirtPkg/ArmVirtXen.fdf
UefiCpuPkg/PiSmmCpuDxeSmm: patch "gSmbase" with PatchInstructionX86()
[mirror_edk2.git] / ArmVirtPkg / ArmVirtXen.fdf
CommitLineData
22455087 1#\r
7fbd1eb2 2# Copyright (c) 2011-2015, ARM Limited. All rights reserved.\r
22455087 3# Copyright (c) 2014, Linaro Limited. All rights reserved.\r
59fcf070 4# Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.<BR>\r
22455087
AB
5#\r
6# This program and the accompanying materials\r
7# are licensed and made available under the terms and conditions of the BSD License\r
8# which accompanies this distribution. The full text of the license may be found at\r
9# http://opensource.org/licenses/bsd-license.php\r
10#\r
11# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13#\r
14\r
15################################################################################\r
16#\r
17# FD Section\r
18# The [FD] Section is made up of the definition statements and a\r
19# description of what goes into the Flash Device Image. Each FD section\r
20# defines one flash "device" image. A flash device image may be one of\r
21# the following: Removable media bootable image (like a boot floppy\r
22# image,) an Option ROM image (that would be "flashed" into an add-in\r
23# card,) a System "Flash" image (that would be burned into a system's\r
24# flash) or an Update ("Capsule") image that will be used to update and\r
25# existing system flash.\r
26#\r
27################################################################################\r
28\r
29[FD.XEN_EFI]\r
30BaseAddress = 0x00000000|gArmTokenSpaceGuid.PcdFdBaseAddress\r
31Size = 0x00200000|gArmTokenSpaceGuid.PcdFdSize\r
32ErasePolarity = 1\r
33\r
34# This one is tricky, it must be: BlockSize * NumBlocks = Size\r
35BlockSize = 0x00001000\r
36NumBlocks = 0x200\r
37\r
38################################################################################\r
39#\r
40# Following are lists of FD Region layout which correspond to the locations of different\r
41# images within the flash device.\r
42#\r
43# Regions must be defined in ascending order and may not overlap.\r
44#\r
45# A Layout Region start with a eight digit hex offset (leading "0x" required) followed by\r
46# the pipe "|" character, followed by the size of the region, also in hex with the leading\r
47# "0x" characters. Like:\r
48# Offset|Size\r
49# PcdOffsetCName|PcdSizeCName\r
50# RegionType <FV, DATA, or FILE>\r
51#\r
52################################################################################\r
53\r
54#\r
55# Implement the Linux kernel header layout so that the Xen loader will identify\r
f7de74af
AB
56# it as something bootable, and execute it with a FDT pointer in x0 or r2.\r
57# This area will be reused to store a copy of the FDT so round it up to 8 KB.\r
22455087
AB
58#\r
590x00000000|0x00002000\r
60DATA = {\r
f7de74af 61!if $(ARCH) == AARCH64\r
22455087
AB
62 0x01, 0x00, 0x00, 0x10, # code0: adr x1, .\r
63 0xff, 0x07, 0x00, 0x14, # code1: b 0x2000\r
64 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, # text_offset: 512 KB\r
65 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, # image_size: 2 MB\r
66 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, # flags\r
67 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, # res2\r
68 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, # res3\r
69 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, # res4\r
70 0x41, 0x52, 0x4d, 0x64, # magic: "ARM\x64"\r
71 0x00, 0x00, 0x00, 0x00 # res5\r
f7de74af
AB
72!else\r
73 0x08, 0x10, 0x4f, 0xe2, # adr r1, .\r
74 0x02, 0x00, 0xa0, 0xe1, # mov r0, r2 (DTB)\r
75 0x00, 0x00, 0xa0, 0xe1, # nop\r
76 0x00, 0x00, 0xa0, 0xe1, # nop\r
77 0x00, 0x00, 0xa0, 0xe1, # nop\r
78 0x00, 0x00, 0xa0, 0xe1, # nop\r
79 0x00, 0x00, 0xa0, 0xe1, # nop\r
80 0x00, 0x00, 0xa0, 0xe1, # nop\r
81\r
82 0xf6, 0x07, 0x00, 0xea, # b 0x2000\r
83 0x18, 0x28, 0x6f, 0x01, # magic\r
84 0x00, 0x00, 0x00, 0x00, # start\r
85 0x00, 0x00, 0x20, 0x00, # image size: 2 MB\r
86 0x01, 0x02, 0x03, 0x04 # endiannness flag\r
87!endif\r
22455087
AB
88}\r
89\r
900x00002000|0x001fe000\r
91gArmTokenSpaceGuid.PcdFvBaseAddress|gArmTokenSpaceGuid.PcdFvSize\r
92FV = FVMAIN_COMPACT\r
93\r
94\r
95################################################################################\r
96#\r
97# FV Section\r
98#\r
99# [FV] section is used to define what components or modules are placed within a flash\r
100# device file. This section also defines order the components and modules are positioned\r
101# within the image. The [FV] section consists of define statements, set statements and\r
102# module statements.\r
103#\r
104################################################################################\r
105\r
106[FV.FvMain]\r
e191a311 107FvNameGuid = 4d2d8743-6337-4c3f-a1d9-7cc7efd283db\r
22455087
AB
108BlockSize = 0x40\r
109NumBlocks = 0 # This FV gets compressed so make it just big enough\r
110FvAlignment = 16 # FV alignment and FV attributes setting.\r
111ERASE_POLARITY = 1\r
112MEMORY_MAPPED = TRUE\r
113STICKY_WRITE = TRUE\r
114LOCK_CAP = TRUE\r
115LOCK_STATUS = TRUE\r
116WRITE_DISABLED_CAP = TRUE\r
117WRITE_ENABLED_CAP = TRUE\r
118WRITE_STATUS = TRUE\r
119WRITE_LOCK_CAP = TRUE\r
120WRITE_LOCK_STATUS = TRUE\r
121READ_DISABLED_CAP = TRUE\r
122READ_ENABLED_CAP = TRUE\r
123READ_STATUS = TRUE\r
124READ_LOCK_CAP = TRUE\r
125READ_LOCK_STATUS = TRUE\r
126\r
22455087
AB
127 INF MdeModulePkg/Core/Dxe/DxeMain.inf\r
128 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf\r
81996ba8 129 INF ArmVirtPkg/XenioFdtDxe/XenioFdtDxe.inf\r
44b9e615 130 INF ArmVirtPkg/FdtClientDxe/FdtClientDxe.inf\r
22455087
AB
131\r
132 #\r
133 # PI DXE Drivers producing Architectural Protocols (EFI Services)\r
134 #\r
135 INF ArmPkg/Drivers/CpuDxe/CpuDxe.inf\r
136 INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf\r
137 INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf\r
138 INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf\r
139\r
140 INF MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe.inf\r
141\r
142 INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf\r
7b1dc6c5 143 INF MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf\r
22455087
AB
144 INF EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf\r
145 INF EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf\r
146 INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf\r
147\r
148 #\r
149 # Multiple Console IO support\r
150 #\r
151 INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf\r
152 INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf\r
ad7f6bc2 153 INF MdeModulePkg/Universal/SerialDxe/SerialDxe.inf\r
22455087
AB
154\r
155 INF ArmPkg/Drivers/ArmGic/ArmGicDxe.inf\r
156 INF ArmPkg/Drivers/TimerDxe/TimerDxe.inf\r
157 INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf\r
158\r
159 #\r
160 # FAT filesystem + GPT/MBR partitioning\r
161 #\r
162 INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf\r
163 INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf\r
42e3d9eb 164 INF FatPkg/EnhancedFatDxe/Fat.inf\r
22455087 165 INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf\r
88fff4f6 166 INF MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf\r
22455087
AB
167\r
168 #\r
169 # UEFI application (Shell Embedded Boot Loader)\r
170 #\r
da1ce6f8 171 INF ShellPkg/Application/Shell/Shell.inf\r
59fcf070 172 INF ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf\r
22455087
AB
173\r
174 #\r
175 # Bds\r
176 #\r
177 INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf\r
178 INF MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf\r
179 INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf\r
75e2d0e0
AB
180 INF MdeModulePkg/Universal/BdsDxe/BdsDxe.inf\r
181 INF MdeModulePkg/Application/UiApp/UiApp.inf\r
22455087
AB
182\r
183 INF OvmfPkg/XenBusDxe/XenBusDxe.inf\r
184 INF OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf\r
185\r
402dde68
SZ
186 #\r
187 # ACPI support\r
188 #\r
3a2c1548 189 INF ArmVirtPkg/XenPlatformHasAcpiDtDxe/XenPlatformHasAcpiDtDxe.inf\r
01430be5 190!if $(ARCH) == AARCH64\r
402dde68
SZ
191 INF MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf\r
192 INF ArmVirtPkg/XenAcpiPlatformDxe/XenAcpiPlatformDxe.inf\r
81d9f86f
LL
193\r
194 #\r
195 # EBC support\r
196 #\r
197 INF MdeModulePkg/Universal/EbcDxe/EbcDxe.inf\r
402dde68
SZ
198!endif\r
199\r
d3644741
VS
200 #\r
201 # Ramdisk support\r
202 #\r
203 INF MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf\r
204\r
22455087
AB
205[FV.FVMAIN_COMPACT]\r
206FvAlignment = 16\r
207ERASE_POLARITY = 1\r
208MEMORY_MAPPED = TRUE\r
209STICKY_WRITE = TRUE\r
210LOCK_CAP = TRUE\r
211LOCK_STATUS = TRUE\r
212WRITE_DISABLED_CAP = TRUE\r
213WRITE_ENABLED_CAP = TRUE\r
214WRITE_STATUS = TRUE\r
215WRITE_LOCK_CAP = TRUE\r
216WRITE_LOCK_STATUS = TRUE\r
217READ_DISABLED_CAP = TRUE\r
218READ_ENABLED_CAP = TRUE\r
219READ_STATUS = TRUE\r
220READ_LOCK_CAP = TRUE\r
221READ_LOCK_STATUS = TRUE\r
222\r
7fbd1eb2 223 INF ArmVirtPkg/PrePi/ArmVirtPrePiUniCoreRelocatable.inf\r
22455087
AB
224\r
225 FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {\r
226 SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {\r
227 SECTION FV_IMAGE = FVMAIN\r
228 }\r
229 }\r
230\r
f4aee089 231!include ArmVirtRules.fdf.inc\r