linux/arch/sh/include
Mike Rapoport (Microsoft) b0aa5e4b08 sh: Fix fallout from ZERO_PAGE consolidation
Consolidation of empty_zero_page declarations broke boot on sh.

sh stores its initial boot parameters in a page reserved in
arch/sh/kernel/head_32.S. Before commit 6215d9f447 ("arch, mm:
consolidate empty_zero_page") this page was referenced in C code
as an array and after that commit it is referenced as a pointer.

This causes wrong code generation and boot hang.

Declare boot_params_page as an array to fix the issue.

Reported-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Tested-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Fixes: 6215d9f447 ("arch, mm: consolidate empty_zero_page")
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Reviewed-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Tested-by: Artur Rojek <contact@artur-rojek.eu>
Signed-off-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
2026-05-03 16:35:40 +02:00
..
asm sh: Fix fallout from ZERO_PAGE consolidation 2026-05-03 16:35:40 +02:00
cpu-common/cpu
cpu-sh2/cpu
cpu-sh2a/cpu sh: sh7269: Remove bogus SSU GPIO function definitions 2019-12-31 10:01:38 +01:00
cpu-sh3/cpu sh: Include <linux/io.h> in dac.h 2026-04-18 10:22:46 +02:00
cpu-sh4/cpu sh: dma: Drop incorrect SH_DMAC_BASE1 definition for SH4 2023-07-05 18:55:25 +02:00
cpu-sh4a/cpu
mach-common/mach sh: Replace __ASSEMBLY__ with __ASSEMBLER__ in all headers 2025-06-07 15:16:21 +02:00
mach-dreamcast/mach sh: Avoid using IRQ0 on SH3 and SH4 2023-06-11 18:22:47 +02:00
mach-ecovec24/mach sh: Replace __ASSEMBLY__ with __ASSEMBLER__ in all headers 2025-06-07 15:16:21 +02:00
mach-kfr2r09/mach sh: Replace __ASSEMBLY__ with __ASSEMBLER__ in all headers 2025-06-07 15:16:21 +02:00
mach-landisk/mach
mach-migor/mach
mach-sdk7786/mach
mach-se/mach sh: Avoid using IRQ0 on SH3 and SH4 2023-06-11 18:22:47 +02:00
mach-sh03/mach
mach-x3proto/mach
uapi/asm sh: Remove CONFIG_VSYSCALL reference from UAPI 2026-04-18 10:23:15 +02:00