]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/Include/Fdf/XenElfHeader.fdf.inc
mv OvmfPkg: move fdf include snippets to Include/Fdf
[mirror_edk2.git] / OvmfPkg / Include / Fdf / XenElfHeader.fdf.inc
diff --git a/OvmfPkg/Include/Fdf/XenElfHeader.fdf.inc b/OvmfPkg/Include/Fdf/XenElfHeader.fdf.inc
new file mode 100644 (file)
index 0000000..c4f04ad
--- /dev/null
@@ -0,0 +1,42 @@
+## @file\r
+#  FDF include file that defines a PVH ELF header.\r
+#\r
+#  Copyright (c) 2022, Intel Corporation. All rights reserved.\r
+#\r
+#  SPDX-License-Identifier: BSD-2-Clause-Patent\r
+#\r
+##\r
+\r
+DATA = {\r
+  # ELF file header\r
+  0x7f, 0x45, 0x4c, 0x46, 0x01, 0x01, 0x01, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x03, 0x00, 0x01, 0x00, 0x00, 0x00,\r
+  0xd0, 0xff, 0x2f, 0x00, # hdr.e_entry\r
+  0x34, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x34, 0x00, 0x20, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\r
+\r
+  # ELF Program segment headers\r
+  # - Load segment\r
+  0x01, 0x00, 0x00, 0x00,\r
+  0x00, 0x00, 0x00, 0x00,\r
+  0x00, 0x00, 0x10, 0x00,\r
+  0x00, 0x00, 0x10, 0x00,\r
+  0x00, 0x00, 0x20, 0x00,\r
+  0x00, 0x00, 0x20, 0x00,\r
+  0x07, 0x00, 0x00, 0x00,\r
+  0x00, 0x00, 0x00, 0x00,\r
+  # - ELFNOTE segment\r
+  0x04, 0x00, 0x00, 0x00,\r
+  0x74, 0x00, 0x00, 0x00,\r
+  0x74, 0x00, 0x10, 0x00,\r
+  0x74, 0x00, 0x10, 0x00,\r
+  0x14, 0x00, 0x00, 0x00,\r
+  0x14, 0x00, 0x00, 0x00,\r
+  0x04, 0x00, 0x00, 0x00,\r
+  0x00, 0x00, 0x00, 0x00,\r
+\r
+  # XEN_ELFNOTE_PHYS32_ENTRY\r
+  0x04, 0x00, 0x00, 0x00,\r
+  0x04, 0x00, 0x00, 0x00,\r
+  0x12, 0x00, 0x00, 0x00,\r
+  0x58, 0x65, 0x6e, 0x00,\r
+  0xd0, 0xff, 0x2f, 0x00\r
+}\r