|
@@ -1,6 +1,18 @@
|
|
#ifndef LINUX_KEXEC_H
|
|
#ifndef LINUX_KEXEC_H
|
|
#define LINUX_KEXEC_H
|
|
#define LINUX_KEXEC_H
|
|
|
|
|
|
|
|
+#define IND_DESTINATION_BIT 0
|
|
|
|
+#define IND_INDIRECTION_BIT 1
|
|
|
|
+#define IND_DONE_BIT 2
|
|
|
|
+#define IND_SOURCE_BIT 3
|
|
|
|
+
|
|
|
|
+#define IND_DESTINATION (1 << IND_DESTINATION_BIT)
|
|
|
|
+#define IND_INDIRECTION (1 << IND_INDIRECTION_BIT)
|
|
|
|
+#define IND_DONE (1 << IND_DONE_BIT)
|
|
|
|
+#define IND_SOURCE (1 << IND_SOURCE_BIT)
|
|
|
|
+
|
|
|
|
+#if !defined(__ASSEMBLY__)
|
|
|
|
+
|
|
#include <uapi/linux/kexec.h>
|
|
#include <uapi/linux/kexec.h>
|
|
|
|
|
|
#ifdef CONFIG_KEXEC
|
|
#ifdef CONFIG_KEXEC
|
|
@@ -64,10 +76,6 @@
|
|
*/
|
|
*/
|
|
|
|
|
|
typedef unsigned long kimage_entry_t;
|
|
typedef unsigned long kimage_entry_t;
|
|
-#define IND_DESTINATION 0x1
|
|
|
|
-#define IND_INDIRECTION 0x2
|
|
|
|
-#define IND_DONE 0x4
|
|
|
|
-#define IND_SOURCE 0x8
|
|
|
|
|
|
|
|
struct kexec_segment {
|
|
struct kexec_segment {
|
|
/*
|
|
/*
|
|
@@ -311,4 +319,7 @@ struct task_struct;
|
|
static inline void crash_kexec(struct pt_regs *regs) { }
|
|
static inline void crash_kexec(struct pt_regs *regs) { }
|
|
static inline int kexec_should_crash(struct task_struct *p) { return 0; }
|
|
static inline int kexec_should_crash(struct task_struct *p) { return 0; }
|
|
#endif /* CONFIG_KEXEC */
|
|
#endif /* CONFIG_KEXEC */
|
|
|
|
+
|
|
|
|
+#endif /* !defined(__ASSEBMLY__) */
|
|
|
|
+
|
|
#endif /* LINUX_KEXEC_H */
|
|
#endif /* LINUX_KEXEC_H */
|