aboutsummaryrefslogtreecommitdiff
path: root/arch/m68k/include
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2013-08-21 22:36:32 +0200
committerGeert Uytterhoeven <geert@linux-m68k.org>2013-12-08 11:01:48 +0100
commit7bc1e4d8d506462c7d40118196f79a709f3fecfd (patch)
treee9d72b9a9e1e0368b9d3e3a9ccae929fd2ab947e /arch/m68k/include
parent7d5f5fa276efbbe45f0ed270b3f4e4a2816398c2 (diff)
m68k: Add support to export bootinfo in procfs
Add optional support to export the bootinfo used to boot the kernel in a "bootinfo" file in procfs. This is useful with kexec. This is based on the similar feature for ATAGS on ARM. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch/m68k/include')
-rw-r--r--arch/m68k/include/asm/bootinfo.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/m68k/include/asm/bootinfo.h b/arch/m68k/include/asm/bootinfo.h
index 9edc31893fb..8e213267f8e 100644
--- a/arch/m68k/include/asm/bootinfo.h
+++ b/arch/m68k/include/asm/bootinfo.h
@@ -13,4 +13,16 @@
#include <uapi/asm/bootinfo.h>
+
+#ifndef __ASSEMBLY__
+
+#ifdef CONFIG_BOOTINFO_PROC
+extern void save_bootinfo(const struct bi_record *bi);
+#else
+static inline void save_bootinfo(const struct bi_record *bi) {}
+#endif
+
+#endif /* __ASSEMBLY__ */
+
+
#endif /* _M68K_BOOTINFO_H */