]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/8xx: Allow disabling KUAP at boot time
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 4 Jun 2021 04:49:25 +0000 (04:49 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 16 Jun 2021 14:09:07 +0000 (00:09 +1000)
commit62a34f24deacf9168566871ffcbe78d278aa1b5f
tree11f90bdc86e96de4b1b14b687535a76f45eb71ef
parentffbccd83cc4c31742d96a486fd5db969f1bccbdc
powerpc/8xx: Allow disabling KUAP at boot time

PPC64 uses MMU features to enable/disable KUAP at boot time.
But feature fixups are applied way too early on PPC32.

But since commit 3b7972c585ee ("powerpc/32: Manage KUAP in C"),
all KUAP is in C so it is now possible to use static branches.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/3dca510ce555335261a47c4799167da698f569c0.1622782111.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/nohash/32/kup-8xx.h
arch/powerpc/mm/nohash/8xx.c