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:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user