Skip to content

Commit a406b8b

Browse files
committed
parisc: Prevent booting 64-bit kernels on PA1.x machines
Bail out early with error message when trying to boot a 64-bit kernel on 32-bit machines. This fixes the previous commit to include the check for true 64-bit kernels as well. Signed-off-by: Helge Deller <[email protected]> Fixes: 591d210 ("parisc: Add runtime check to prevent PA2.0 kernels on PA1.x machines") Cc: <[email protected]> # v6.0+
1 parent 8e8e46a commit a406b8b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

arch/parisc/kernel/head.S

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,8 @@ $bss_loop:
7070
stw,ma %arg2,4(%r1)
7171
stw,ma %arg3,4(%r1)
7272

73-
#if !defined(CONFIG_64BIT) && defined(CONFIG_PA20)
74-
/* This 32-bit kernel was compiled for PA2.0 CPUs. Check current CPU
75-
* and halt kernel if we detect a PA1.x CPU. */
73+
#if defined(CONFIG_PA20)
74+
/* check for 64-bit capable CPU as required by current kernel */
7675
ldi 32,%r10
7776
mtctl %r10,%cr11
7877
.level 2.0

0 commit comments

Comments
 (0)