Home
last modified time | relevance | path

Searched refs:kuap (Results 1 – 10 of 10) sorted by relevance

/openbmc/linux/arch/powerpc/include/asm/book3s/32/
H A Dkup.h60 unsigned long kuap = current->thread.kuap; in __kuap_save_and_lock() local
62 regs->kuap = kuap; in __kuap_save_and_lock()
63 if (unlikely(kuap == KUAP_NONE)) in __kuap_save_and_lock()
66 current->thread.kuap = KUAP_NONE; in __kuap_save_and_lock()
67 kuap_lock_one(kuap); in __kuap_save_and_lock()
75 static __always_inline void __kuap_kernel_restore(struct pt_regs *regs, unsigned long kuap) in __kuap_kernel_restore() argument
77 if (unlikely(kuap != KUAP_NONE)) { in __kuap_kernel_restore()
78 current->thread.kuap = KUAP_NONE; in __kuap_kernel_restore()
79 kuap_lock_one(kuap); in __kuap_kernel_restore()
82 if (likely(regs->kuap == KUAP_NONE)) in __kuap_kernel_restore()
[all …]
/openbmc/linux/arch/powerpc/include/asm/nohash/32/
H A Dkup-8xx.h16 regs->kuap = mfspr(SPRN_MD_AP); in __kuap_save_and_lock()
25 static __always_inline void __kuap_kernel_restore(struct pt_regs *regs, unsigned long kuap) in __kuap_kernel_restore() argument
27 mtspr(SPRN_MD_AP, regs->kuap); in __kuap_kernel_restore()
82 return !((regs->kuap ^ MD_APG_KUAP) & 0xff000000); in __bad_kuap_fault()
/openbmc/linux/arch/powerpc/include/asm/nohash/
H A Dkup-booke.h30 regs->kuap = mfspr(SPRN_PID); in __kuap_save_and_lock()
46 static __always_inline void __kuap_kernel_restore(struct pt_regs *regs, unsigned long kuap) in __kuap_kernel_restore() argument
48 if (regs->kuap) in __kuap_kernel_restore()
105 return !regs->kuap; in __bad_kuap_fault()
/openbmc/linux/arch/powerpc/kernel/
H A Dinterrupt.c370 unsigned long kuap; in interrupt_exit_kernel_prepare() local
390 kuap = kuap_get_and_assert_locked(); in interrupt_exit_kernel_prepare()
458 kuap_kernel_restore(regs, kuap); in interrupt_exit_kernel_prepare()
H A Dprocess.c1862 p->thread.kuap = KUAP_NONE; in copy_thread()
/openbmc/linux/arch/powerpc/mm/book3s32/
H A DMakefile12 obj-$(CONFIG_PPC_KUAP) += kuap.o
/openbmc/linux/arch/powerpc/include/asm/
H A Dprocessor.h150 unsigned long kuap; /* opened segments for user access */ member
290 .kuap = ~0UL, /* KUAP_NONE */ \
H A Dptrace.h67 unsigned long kuap; member
/openbmc/linux/
H A Dopengrok2.0.log[all...]
H A Dopengrok1.0.log[all...]