diff options
Diffstat (limited to 'kexec/arch/x86_64/crashdump-x86_64.h')
-rw-r--r-- | kexec/arch/x86_64/crashdump-x86_64.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/kexec/arch/x86_64/crashdump-x86_64.h b/kexec/arch/x86_64/crashdump-x86_64.h index 0e83527..2129104 100644 --- a/kexec/arch/x86_64/crashdump-x86_64.h +++ b/kexec/arch/x86_64/crashdump-x86_64.h @@ -1,12 +1,16 @@ #ifndef CRASHDUMP_X86_64_H #define CRASHDUMP_X86_64_H +#include "../../kexec.h" + int load_crashdump_segments(struct kexec_info *info, char *mod_cmdline, unsigned long max_addr, unsigned long min_base); #define __START_KERNEL_map 0xffffffff80000000UL -#define PAGE_OFFSET 0xffff810000000000UL -#define __pa(x) (((unsigned long)(x)>=__START_KERNEL_map)?(unsigned long)(x) - (unsigned long)__START_KERNEL_map:(unsigned long)(x) - PAGE_OFFSET) + +extern unsigned long page_offset; + +#define __pa(x) (((unsigned long)(x)>=__START_KERNEL_map)?(unsigned long)(x) - (unsigned long)__START_KERNEL_map:(unsigned long)(x) - page_offset) #define MAXMEM 0x3fffffffffffUL |