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