| .. | .. |
|---|
| 5 | 5 | #include <linux/kexec.h> |
|---|
| 6 | 6 | #include <linux/proc_fs.h> |
|---|
| 7 | 7 | #include <linux/elf.h> |
|---|
| 8 | +#include <linux/pgtable.h> |
|---|
| 8 | 9 | #include <uapi/linux/vmcore.h> |
|---|
| 9 | 10 | |
|---|
| 10 | | -#include <asm/pgtable.h> /* for pgprot_t */ |
|---|
| 11 | +#include <linux/pgtable.h> /* for pgprot_t */ |
|---|
| 11 | 12 | |
|---|
| 12 | 13 | #ifdef CONFIG_CRASH_DUMP |
|---|
| 13 | 14 | #define ELFCORE_ADDR_MAX (-1ULL) |
|---|
| .. | .. |
|---|
| 26 | 27 | |
|---|
| 27 | 28 | extern ssize_t copy_oldmem_page(unsigned long, char *, size_t, |
|---|
| 28 | 29 | unsigned long, int); |
|---|
| 30 | +extern ssize_t copy_oldmem_page_encrypted(unsigned long pfn, char *buf, |
|---|
| 31 | + size_t csize, unsigned long offset, |
|---|
| 32 | + int userbuf); |
|---|
| 33 | + |
|---|
| 29 | 34 | void vmcore_cleanup(void); |
|---|
| 30 | 35 | |
|---|
| 31 | 36 | /* Architecture code defines this if there are other possible ELF |
|---|
| .. | .. |
|---|
| 93 | 98 | static inline bool is_kdump_kernel(void) { return 0; } |
|---|
| 94 | 99 | #endif /* CONFIG_CRASH_DUMP */ |
|---|
| 95 | 100 | |
|---|
| 96 | | -extern unsigned long saved_max_pfn; |
|---|
| 97 | | - |
|---|
| 98 | 101 | /* Device Dump information to be filled by drivers */ |
|---|
| 99 | 102 | struct vmcoredd_data { |
|---|
| 100 | 103 | char dump_name[VMCOREDD_MAX_NAME_BYTES]; /* Unique name of the dump */ |
|---|
| .. | .. |
|---|
| 111 | 114 | return -EOPNOTSUPP; |
|---|
| 112 | 115 | } |
|---|
| 113 | 116 | #endif /* CONFIG_PROC_VMCORE_DEVICE_DUMP */ |
|---|
| 117 | + |
|---|
| 118 | +#ifdef CONFIG_PROC_VMCORE |
|---|
| 119 | +ssize_t read_from_oldmem(char *buf, size_t count, |
|---|
| 120 | + u64 *ppos, int userbuf, |
|---|
| 121 | + bool encrypted); |
|---|
| 122 | +#else |
|---|
| 123 | +static inline ssize_t read_from_oldmem(char *buf, size_t count, |
|---|
| 124 | + u64 *ppos, int userbuf, |
|---|
| 125 | + bool encrypted) |
|---|
| 126 | +{ |
|---|
| 127 | + return -EOPNOTSUPP; |
|---|
| 128 | +} |
|---|
| 129 | +#endif /* CONFIG_PROC_VMCORE */ |
|---|
| 130 | + |
|---|
| 114 | 131 | #endif /* LINUX_CRASHDUMP_H */ |
|---|