diff options
Diffstat (limited to 'include/linux/purgatory.h')
-rw-r--r-- | include/linux/purgatory.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/linux/purgatory.h b/include/linux/purgatory.h new file mode 100644 index 000000000000..d60d4e278609 --- /dev/null +++ b/include/linux/purgatory.h | |||
@@ -0,0 +1,23 @@ | |||
1 | #ifndef _LINUX_PURGATORY_H | ||
2 | #define _LINUX_PURGATORY_H | ||
3 | |||
4 | #include <linux/types.h> | ||
5 | #include <crypto/sha.h> | ||
6 | #include <uapi/linux/kexec.h> | ||
7 | |||
8 | struct kexec_sha_region { | ||
9 | unsigned long start; | ||
10 | unsigned long len; | ||
11 | }; | ||
12 | |||
13 | /* | ||
14 | * These forward declarations serve two purposes: | ||
15 | * | ||
16 | * 1) Make sparse happy when checking arch/purgatory | ||
17 | * 2) Document that these are required to be global so the symbol | ||
18 | * lookup in kexec works | ||
19 | */ | ||
20 | extern struct kexec_sha_region purgatory_sha_regions[KEXEC_SEGMENT_MAX]; | ||
21 | extern u8 purgatory_sha256_digest[SHA256_DIGEST_SIZE]; | ||
22 | |||
23 | #endif | ||