summaryrefslogtreecommitdiffstats
path: root/include/linux/efi.h
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2022-09-16 14:03:06 +0200
committerArd Biesheuvel <ardb@kernel.org>2022-09-27 13:21:36 +0200
commitf4dc7fffa9873db50ec25624572f8217a6225de8 (patch)
tree13c8564501a81cd830ad158c822b90afbb8b188b /include/linux/efi.h
parenta12b78b5714456e276b9545005f518802a319af9 (diff)
downloadlinux-f4dc7fffa9873db50ec25624572f8217a6225de8.tar.gz
linux-f4dc7fffa9873db50ec25624572f8217a6225de8.tar.bz2
linux-f4dc7fffa9873db50ec25624572f8217a6225de8.zip
efi: libstub: unify initrd loading between architectures
Use a EFI configuration table to pass the initrd to the core kernel, instead of per-arch methods. This cleans up the code considerably, and should make it easier for architectures to get rid of their reliance on DT for doing EFI boot in the future. Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'include/linux/efi.h')
-rw-r--r--include/linux/efi.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/efi.h b/include/linux/efi.h
index f1b3e0d1b3fa..778ddb22f7da 100644
--- a/include/linux/efi.h
+++ b/include/linux/efi.h
@@ -1330,6 +1330,11 @@ struct linux_efi_coco_secret_area {
u64 size;
};
+struct linux_efi_initrd {
+ unsigned long base;
+ unsigned long size;
+};
+
/* Header of a populated EFI secret area */
#define EFI_SECRET_TABLE_HEADER_GUID EFI_GUID(0x1e74f542, 0x71dd, 0x4d66, 0x96, 0x3e, 0xef, 0x42, 0x87, 0xff, 0x17, 0x3b)