]> git.itanic.dy.fi Git - linux-stable/commit
parisc: Add runtime check to prevent PA2.0 kernels on PA1.x machines
authorHelge Deller <deller@gmx.de>
Sun, 21 Aug 2022 12:49:58 +0000 (14:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Sep 2022 10:17:05 +0000 (12:17 +0200)
commita6e7e32f1608850cb783fddf9f6b2fce1267b3f9
treeaf61e817bb7f6921d199e38e19cfac54e83b4f3f
parent05af41d29a4527125f3356d82cf29657177c7fff
parisc: Add runtime check to prevent PA2.0 kernels on PA1.x machines

[ Upstream commit 591d2108f3abc4db9f9073cae37cf3591fd250d6 ]

If a 32-bit kernel was compiled for PA2.0 CPUs, it won't be able to run
on machines with PA1.x CPUs. Add a check and bail out early if a PA1.x
machine is detected.

Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/parisc/kernel/head.S