Skip to content

Commit 805ce86

Browse files
committed
parisc: Allow CONFIG_64BIT with ARCH=parisc
The previous patch triggered a build failure for the debian kernel, which has CONFIG_64BIT enabled, uses the CROSS_COMPILER environment variable and uses ARCH=parisc to configure the kernel for 64-bit support. This patch weakens the previous patch while keeping the recommended way to configure the kernel with: ARCH=parisc -> build 32-bit kernel ARCH=parisc64 -> build 64-bit kernel while adding the possibility for debian to configure a 64-bit kernel even if ARCH=parisc is set (PA8X00 CPU has to be selected and CONFIG_64BIT needs to be enabled). The downside of this patch is, that we now have a small window open again where people may get it wrong: if they enable CONFIG_64BIT and try to compile with a 32-bit compiler. Fixes: 3dcfb72 ("parisc: Make CONFIG_64BIT available for ARCH=parisc64 only") Signed-off-by: Helge Deller <[email protected]> Cc: <[email protected]> # 5.15+
1 parent e359b70 commit 805ce86

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

arch/parisc/Kconfig

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,18 @@ config MLONGCALLS
224224
Enabling this option will probably slow down your kernel.
225225

226226
config 64BIT
227-
def_bool "$(ARCH)" = "parisc64"
227+
def_bool y if "$(ARCH)" = "parisc64"
228+
bool "64-bit kernel" if "$(ARCH)" = "parisc"
228229
depends on PA8X00
230+
help
231+
Enable this if you want to support 64bit kernel on PA-RISC platform.
232+
233+
At the moment, only people willing to use more than 2GB of RAM,
234+
or having a 64bit-only capable PA-RISC machine should say Y here.
235+
236+
Since there is no 64bit userland on PA-RISC, there is no point to
237+
enable this option otherwise. The 64bit kernel is significantly bigger
238+
and slower than the 32bit one.
229239

230240
choice
231241
prompt "Kernel page size"

0 commit comments

Comments
 (0)