xref: /kernel/linux/linux-5.10/include/linux/purgatory.h (revision 8c2ecf20)
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/include/linux/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef _LINUX_PURGATORY_H
38c2ecf20Sopenharmony_ci#define _LINUX_PURGATORY_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci#include <linux/types.h>
68c2ecf20Sopenharmony_ci#include <crypto/sha.h>
78c2ecf20Sopenharmony_ci#include <uapi/linux/kexec.h>
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_cistruct kexec_sha_region {
108c2ecf20Sopenharmony_ci	unsigned long start;
118c2ecf20Sopenharmony_ci	unsigned long len;
128c2ecf20Sopenharmony_ci};
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci/*
158c2ecf20Sopenharmony_ci * These forward declarations serve two purposes:
168c2ecf20Sopenharmony_ci *
178c2ecf20Sopenharmony_ci * 1) Make sparse happy when checking arch/purgatory
188c2ecf20Sopenharmony_ci * 2) Document that these are required to be global so the symbol
198c2ecf20Sopenharmony_ci *    lookup in kexec works
208c2ecf20Sopenharmony_ci */
218c2ecf20Sopenharmony_ciextern struct kexec_sha_region purgatory_sha_regions[KEXEC_SEGMENT_MAX];
228c2ecf20Sopenharmony_ciextern u8 purgatory_sha256_digest[SHA256_DIGEST_SIZE];
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci#endif
25

Indexes created Thu Nov 07 10:32:03 CST 2024