Skip to content

Commit 553f7ac

Browse files
geertuglaubitz
authored andcommitted
sh: bios: Revive earlyprintk support
The SuperH BIOS earlyprintk code is protected by CONFIG_EARLY_PRINTK. However, when this protection was added, it was missed that SuperH no longer defines an EARLY_PRINTK config symbol since commit e76fe57 ("sh: Remove old early serial console code V2"), so BIOS earlyprintk can no longer be used. Fix this by reviving the EARLY_PRINTK config symbol. Fixes: d0380e6 ("early_printk: consolidate random copies of identical code") Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> Link: https://lore.kernel.org/r/c40972dfec3dcc6719808d5df388857360262878.1697708489.git.geert+renesas@glider.be Signed-off-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
1 parent 4c02add commit 553f7ac

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

arch/sh/Kconfig.debug

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,17 @@ config STACK_DEBUG
2222
every function call and will therefore incur a major
2323
performance hit. Most users should say N.
2424

25+
config EARLY_PRINTK
26+
bool "Early printk"
27+
depends on SH_STANDARD_BIOS
28+
help
29+
Say Y here to redirect kernel printk messages to the serial port
30+
used by the SH-IPL bootloader, starting very early in the boot
31+
process and ending when the kernel's serial console is initialised.
32+
This option is only useful while porting the kernel to a new machine,
33+
when the kernel may crash or hang before the serial console is
34+
initialised. If unsure, say N.
35+
2536
config 4KSTACKS
2637
bool "Use 4Kb for kernel stacks instead of 8Kb"
2738
depends on DEBUG_KERNEL && (MMU || BROKEN) && !PAGE_SIZE_64KB

0 commit comments

Comments
 (0)