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>
This commit is contained in:
Geert Uytterhoeven
2013-08-21 22:36:32 +02:00
parent 7d5f5fa276
commit 7bc1e4d8d5
5 changed files with 102 additions and 0 deletions

View File

@@ -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 */