linux/arch/sh
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
..
boards sh updates for v6.16 2025-06-07 10:00:03 -07:00
boot sh: Do not use hyphen in exported variable name 2025-07-26 17:15:41 +02:00
cchips sh: hd64461: Make setup_hd64461() static 2024-03-21 12:17:35 +01:00
configs sh updates for v7.1 2026-04-20 16:41:19 -07:00
drivers sh updates for v7.1 2026-04-20 16:41:19 -07:00
include sh: Fix fallout from ZERO_PAGE consolidation 2026-05-03 16:35:40 +02:00
kernel arch, mm: consolidate empty_zero_page 2026-04-05 13:53:01 -07:00
lib sh: remove duplicate ioread/iowrite helpers 2025-03-11 10:41:18 +01:00
math-emu sh: math-emu: Add missing #include <asm/fpu.h> 2024-05-02 12:01:24 +02:00
mm arch, mm: consolidate empty_zero_page 2026-04-05 13:53:01 -07:00
tools
Kbuild sh: Migrate to the generic rule for built-in DTB 2025-02-01 10:43:18 +01:00
Kconfig tracing: Remove redundant config HAVE_FTRACE_MCOUNT_RECORD 2025-07-22 20:15:56 -04:00
Kconfig.cpu docs: move superh documentation under Documentation/arch/ 2023-03-30 13:00:35 -06:00
Kconfig.debug sh: bios: Revive earlyprintk support 2023-10-25 16:50:30 +02:00
Makefile sh: Do not use hyphen in exported variable name 2025-07-26 17:15:41 +02:00