summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2020-02-20 13:06:00 +0300
committerArd Biesheuvel <ardb@kernel.org>2020-02-23 23:59:42 +0300
commit148d3f716c208738d2c7ff8c80be18d89ec8a06e (patch)
tree000c8afd669710d74722802fd61af9400bac6583 /include
parenta3326a0d878c433d69981c504f8c8ade60cd2b51 (diff)
downloadlinux-148d3f716c208738d2c7ff8c80be18d89ec8a06e.tar.xz
efi/libstub: Introduce symbolic constants for the stub major/minor version
Now that we have added new ways to load the initrd or the mixed mode kernel, we will also need a way to tell the loader about this. Add symbolic constants for the PE/COFF major/minor version numbers (which fortunately have always been 0x0 for all architectures), so that we can bump them later to document the capabilities of the stub. Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/pe.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/pe.h b/include/linux/pe.h
index c86bd3a2f70f..e0869f3eadd6 100644
--- a/include/linux/pe.h
+++ b/include/linux/pe.h
@@ -10,6 +10,9 @@
#include <linux/types.h>
+#define LINUX_EFISTUB_MAJOR_VERSION 0x0
+#define LINUX_EFISTUB_MINOR_VERSION 0x0
+
#define MZ_MAGIC 0x5a4d /* "MZ" */
#define PE_MAGIC 0x00004550 /* "PE\0\0" */