blob: b950e961cfa89e3b897213828db15483817095e4 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Thomas Gleixner40c50c12017-03-10 13:17:18 +01002#ifndef _LINUX_PURGATORY_H
3#define _LINUX_PURGATORY_H
4
5#include <linux/types.h>
6#include <crypto/sha.h>
7#include <uapi/linux/kexec.h>
8
9struct kexec_sha_region {
10 unsigned long start;
11 unsigned long len;
12};
13
14/*
15 * These forward declarations serve two purposes:
16 *
17 * 1) Make sparse happy when checking arch/purgatory
18 * 2) Document that these are required to be global so the symbol
19 * lookup in kexec works
20 */
21extern struct kexec_sha_region purgatory_sha_regions[KEXEC_SEGMENT_MAX];
22extern u8 purgatory_sha256_digest[SHA256_DIGEST_SIZE];
23
24#endif