3
0
mirror of https://github.com/Qortal/Brooklyn.git synced 2025-02-01 07:42:18 +00:00
Brooklyn/arch/powerpc/mm/book3s32/kuep.c
Scare Crowe b73fb8b536 BrooklynR dsat NXT 1.2 with IpoverVHF source
* Try that punk NASA -_-
2021-07-20 21:20:39 +05:00

21 lines
378 B
C

// SPDX-License-Identifier: GPL-2.0-or-later
#include <asm/kup.h>
#include <asm/smp.h>
struct static_key_false disable_kuep_key;
void setup_kuep(bool disabled)
{
if (!disabled)
kuep_lock();
if (smp_processor_id() != boot_cpuid)
return;
if (disabled)
static_branch_enable(&disable_kuep_key);
else
pr_info("Activating Kernel Userspace Execution Prevention\n");
}