diff options
-rw-r--r-- | include/linux/kexec.h | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/include/linux/kexec.h b/include/linux/kexec.h index 10da8e246317..1fd980cc481b 100644 --- a/include/linux/kexec.h +++ b/include/linux/kexec.h | |||
@@ -1,6 +1,18 @@ | |||
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 | |||
14 | #if !defined(__ASSEMBLY__) | ||
15 | |||
4 | #include <uapi/linux/kexec.h> | 16 | #include <uapi/linux/kexec.h> |
5 | 17 | ||
6 | #ifdef CONFIG_KEXEC | 18 | #ifdef CONFIG_KEXEC |
@@ -64,10 +76,6 @@ | |||
64 | */ | 76 | */ |
65 | 77 | ||
66 | typedef unsigned long kimage_entry_t; | 78 | 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 | 79 | ||
72 | struct kexec_segment { | 80 | struct kexec_segment { |
73 | /* | 81 | /* |
@@ -311,4 +319,7 @@ struct task_struct; | |||
311 | static inline void crash_kexec(struct pt_regs *regs) { } | 319 | static inline void crash_kexec(struct pt_regs *regs) { } |
312 | static inline int kexec_should_crash(struct task_struct *p) { return 0; } | 320 | static inline int kexec_should_crash(struct task_struct *p) { return 0; } |
313 | #endif /* CONFIG_KEXEC */ | 321 | #endif /* CONFIG_KEXEC */ |
322 | |||
323 | #endif /* !defined(__ASSEBMLY__) */ | ||
324 | |||
314 | #endif /* LINUX_KEXEC_H */ | 325 | #endif /* LINUX_KEXEC_H */ |