mirror of
https://github.com/raspberrypi/linux.git
synced 2026-01-04 10:21:00 +00:00
Collect all boot messages into a ring buffer independent of the current log level. This allows to retain all boot-time messages, which is particularly useful for analyzing early crashes. Signed-off-by: Vasily Gorbik <gor@linux.ibm.com> Acked-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
32 lines
924 B
C
32 lines
924 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _ASM_S390_BOOT_DATA_H
|
|
|
|
#include <asm/setup.h>
|
|
#include <asm/ipl.h>
|
|
|
|
extern char early_command_line[COMMAND_LINE_SIZE];
|
|
extern struct ipl_parameter_block ipl_block;
|
|
extern int ipl_block_valid;
|
|
extern int ipl_secure_flag;
|
|
|
|
extern unsigned long ipl_cert_list_addr;
|
|
extern unsigned long ipl_cert_list_size;
|
|
|
|
extern unsigned long early_ipl_comp_list_addr;
|
|
extern unsigned long early_ipl_comp_list_size;
|
|
|
|
extern char boot_rb[PAGE_SIZE * 2];
|
|
extern size_t boot_rb_off;
|
|
|
|
#define boot_rb_foreach(cb) \
|
|
do { \
|
|
size_t off = boot_rb_off + strlen(boot_rb + boot_rb_off) + 1; \
|
|
size_t len; \
|
|
for (; off < sizeof(boot_rb) && (len = strlen(boot_rb + off)); off += len + 1) \
|
|
cb(boot_rb + off); \
|
|
for (off = 0; off < boot_rb_off && (len = strlen(boot_rb + off)); off += len + 1) \
|
|
cb(boot_rb + off); \
|
|
} while (0)
|
|
|
|
#endif /* _ASM_S390_BOOT_DATA_H */
|