diff options
Diffstat (limited to 'include/linux/kexec.h')
-rw-r--r-- | include/linux/kexec.h | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/include/linux/kexec.h b/include/linux/kexec.h index 9d957b7ae095..e60a745ac198 100644 --- a/include/linux/kexec.h +++ b/include/linux/kexec.h | |||
@@ -1,6 +1,19 @@ | |||
1 | #ifndef LINUX_KEXEC_H | 1 | #ifndef LINUX_KEXEC_H |
2 | #define LINUX_KEXEC_H | 2 | #define LINUX_KEXEC_H |
3 | 3 | ||
4 | #define IND_DESTINATION_BIT 0 | ||
5 | #define IND_INDIRECTION_BIT 1 | ||
6 | #define IND_DONE_BIT 2 | ||
7 | #define IND_SOURCE_BIT 3 | ||
8 | |||
9 | #define IND_DESTINATION (1 << IND_DESTINATION_BIT) | ||
10 | #define IND_INDIRECTION (1 << IND_INDIRECTION_BIT) | ||
11 | #define IND_DONE (1 << IND_DONE_BIT) | ||
12 | #define IND_SOURCE (1 << IND_SOURCE_BIT) | ||
13 | #define IND_FLAGS (IND_DESTINATION | IND_INDIRECTION | IND_DONE | IND_SOURCE) | ||
14 | |||
15 | #if !defined(__ASSEMBLY__) | ||
16 | |||
4 | #include <uapi/linux/kexec.h> | 17 | #include <uapi/linux/kexec.h> |
5 | 18 | ||
6 | #ifdef CONFIG_KEXEC | 19 | #ifdef CONFIG_KEXEC |
@@ -64,10 +77,6 @@ | |||
64 | */ | 77 | */ |
65 | 78 | ||
66 | typedef unsigned long kimage_entry_t; | 79 | typedef unsigned long kimage_entry_t; |
67 | #define IND_DESTINATION 0x1 | ||
68 | #define IND_INDIRECTION 0x2 | ||
69 | #define IND_DONE 0x4 | ||
70 | #define IND_SOURCE 0x8 | ||
71 | 80 | ||
72 | struct kexec_segment { | 81 | struct kexec_segment { |
73 | /* | 82 | /* |
@@ -122,8 +131,6 @@ struct kimage { | |||
122 | kimage_entry_t *entry; | 131 | kimage_entry_t *entry; |
123 | kimage_entry_t *last_entry; | 132 | kimage_entry_t *last_entry; |
124 | 133 | ||
125 | unsigned long destination; | ||
126 | |||
127 | unsigned long start; | 134 | unsigned long start; |
128 | struct page *control_code_page; | 135 | struct page *control_code_page; |
129 | struct page *swap_page; | 136 | struct page *swap_page; |
@@ -313,4 +320,7 @@ struct task_struct; | |||
313 | static inline void crash_kexec(struct pt_regs *regs) { } | 320 | static inline void crash_kexec(struct pt_regs *regs) { } |
314 | static inline int kexec_should_crash(struct task_struct *p) { return 0; } | 321 | static inline int kexec_should_crash(struct task_struct *p) { return 0; } |
315 | #endif /* CONFIG_KEXEC */ | 322 | #endif /* CONFIG_KEXEC */ |
323 | |||
324 | #endif /* !defined(__ASSEBMLY__) */ | ||
325 | |||
316 | #endif /* LINUX_KEXEC_H */ | 326 | #endif /* LINUX_KEXEC_H */ |