Home
last modified time | relevance | path

Searched refs:num_pkey (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/arch/powerpc/mm/book3s64/
H A Dpkeys.c19 int num_pkey; /* Max number of pkeys supported */ variable
159 num_pkey = min(8, pkeys_total); in pkey_early_init_devtree()
161 num_pkey = pkeys_total; in pkey_early_init_devtree()
164 if (unlikely(num_pkey <= execute_only_key) || !pkey_execute_disable_supported) { in pkey_early_init_devtree()
190 if (unlikely(num_pkey <= 3)) { in pkey_early_init_devtree()
197 WARN(1, "Disabling kernel user protection due to low (%d) max supported keys\n", num_pkey); in pkey_early_init_devtree()
236 for (i = num_pkey; i < 32 ; i++) { in pkey_early_init_devtree()
245 pr_info("Enabling pkeys with max key count %d\n", num_pkey); in pkey_early_init_devtree()
/openbmc/linux/arch/powerpc/include/asm/
H A Dpkeys.h14 extern int num_pkey;
47 return num_pkey; in arch_max_pkey()