Home
last modified time | relevance | path

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

/Linux-v5.15/arch/powerpc/mm/book3s64/
Dpkeys.c18 int num_pkey; /* Max number of pkeys supported */ variable
158 num_pkey = min(8, pkeys_total); in pkey_early_init_devtree()
160 num_pkey = pkeys_total; in pkey_early_init_devtree()
163 if (unlikely(num_pkey <= execute_only_key) || !pkey_execute_disable_supported) { in pkey_early_init_devtree()
189 if (unlikely(num_pkey <= 3)) { in pkey_early_init_devtree()
196 WARN(1, "Disabling kernel user protection due to low (%d) max supported keys\n", num_pkey); in pkey_early_init_devtree()
235 for (i = num_pkey; i < 32 ; i++) { in pkey_early_init_devtree()
244 pr_info("Enabling pkeys with max key count %d\n", num_pkey); in pkey_early_init_devtree()
/Linux-v5.15/arch/powerpc/include/asm/
Dpkeys.h14 extern int num_pkey;
47 return num_pkey; in arch_max_pkey()