kup.h (eb232b1624462752dc916d9015b31ecdac0a01f1) kup.h (61130e203dca3ba1f0c510eb12f7a4294e31a834)
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _ASM_POWERPC_KUP_H_
3#define _ASM_POWERPC_KUP_H_
4
5#define KUAP_READ 1
6#define KUAP_WRITE 2
7#define KUAP_READ_WRITE (KUAP_READ | KUAP_WRITE)
8/*

--- 30 unchanged lines hidden (view full) ---

39
40.macro kuap_check_amr gpr1, gpr2
41.endm
42
43#endif
44
45#else /* !__ASSEMBLY__ */
46
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _ASM_POWERPC_KUP_H_
3#define _ASM_POWERPC_KUP_H_
4
5#define KUAP_READ 1
6#define KUAP_WRITE 2
7#define KUAP_READ_WRITE (KUAP_READ | KUAP_WRITE)
8/*

--- 30 unchanged lines hidden (view full) ---

39
40.macro kuap_check_amr gpr1, gpr2
41.endm
42
43#endif
44
45#else /* !__ASSEMBLY__ */
46
47extern bool disable_kuep;
48extern bool disable_kuap;
49
47#include <linux/pgtable.h>
48
49void setup_kup(void);
50
51#ifdef CONFIG_PPC_KUEP
52void setup_kuep(bool disabled);
53#else
54static inline void setup_kuep(bool disabled) { }

--- 80 unchanged lines hidden ---
50#include <linux/pgtable.h>
51
52void setup_kup(void);
53
54#ifdef CONFIG_PPC_KUEP
55void setup_kuep(bool disabled);
56#else
57static inline void setup_kuep(bool disabled) { }

--- 80 unchanged lines hidden ---