cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

kexec_internal.h (924B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      2#ifndef LINUX_KEXEC_INTERNAL_H
      3#define LINUX_KEXEC_INTERNAL_H
      4
      5#include <linux/kexec.h>
      6
      7struct kimage *do_kimage_alloc_init(void);
      8int sanity_check_segment_list(struct kimage *image);
      9void kimage_free_page_list(struct list_head *list);
     10void kimage_free(struct kimage *image);
     11int kimage_load_segment(struct kimage *image, struct kexec_segment *segment);
     12void kimage_terminate(struct kimage *image);
     13int kimage_is_destination_range(struct kimage *image,
     14				unsigned long start, unsigned long end);
     15
     16extern struct mutex kexec_mutex;
     17
     18#ifdef CONFIG_KEXEC_FILE
     19#include <linux/purgatory.h>
     20void kimage_file_post_load_cleanup(struct kimage *image);
     21extern char kexec_purgatory[];
     22extern size_t kexec_purgatory_size;
     23#else /* CONFIG_KEXEC_FILE */
     24static inline void kimage_file_post_load_cleanup(struct kimage *image) { }
     25#endif /* CONFIG_KEXEC_FILE */
     26#endif /* LINUX_KEXEC_INTERNAL_H */