summaryrefslogtreecommitdiff
path: root/arch/powerpc/mm/book3s32/kuap.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/mm/book3s32/kuap.c')
-rw-r--r--arch/powerpc/mm/book3s32/kuap.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/powerpc/mm/book3s32/kuap.c b/arch/powerpc/mm/book3s32/kuap.c
index 0f920f09af57..28676cabb005 100644
--- a/arch/powerpc/mm/book3s32/kuap.c
+++ b/arch/powerpc/mm/book3s32/kuap.c
@@ -20,8 +20,11 @@ EXPORT_SYMBOL(kuap_unlock_all_ool);
void setup_kuap(bool disabled)
{
- if (!disabled)
+ if (!disabled) {
kuap_lock_all_ool();
+ init_mm.context.sr0 |= SR_KS;
+ current->thread.sr0 |= SR_KS;
+ }
if (smp_processor_id() != boot_cpuid)
return;