xref: /linux/arch/powerpc/mm/book3s32/kuap.c (revision 91ec66719d4c5c0e7b4e32585b01881660d1bc53)
1*91ec6671SChristophe Leroy // SPDX-License-Identifier: GPL-2.0-or-later
2*91ec6671SChristophe Leroy 
3*91ec6671SChristophe Leroy #include <asm/kup.h>
4*91ec6671SChristophe Leroy 
5*91ec6671SChristophe Leroy void __init setup_kuap(bool disabled)
6*91ec6671SChristophe Leroy {
7*91ec6671SChristophe Leroy 	pr_info("Activating Kernel Userspace Access Protection\n");
8*91ec6671SChristophe Leroy 
9*91ec6671SChristophe Leroy 	if (disabled)
10*91ec6671SChristophe Leroy 		pr_warn("KUAP cannot be disabled yet on 6xx when compiled in\n");
11*91ec6671SChristophe Leroy }
12