Searched refs:kuap (Results 1 – 10 of 10) sorted by relevance
60 unsigned long kuap = current->thread.kuap; in __kuap_save_and_lock() local62 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() argument77 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 …]
16 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() argument27 mtspr(SPRN_MD_AP, regs->kuap); in __kuap_kernel_restore()82 return !((regs->kuap ^ MD_APG_KUAP) & 0xff000000); in __bad_kuap_fault()
30 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() argument48 if (regs->kuap) in __kuap_kernel_restore()105 return !regs->kuap; in __bad_kuap_fault()
370 unsigned long kuap; in interrupt_exit_kernel_prepare() local390 kuap = kuap_get_and_assert_locked(); in interrupt_exit_kernel_prepare()458 kuap_kernel_restore(regs, kuap); in interrupt_exit_kernel_prepare()
1862 p->thread.kuap = KUAP_NONE; in copy_thread()
12 obj-$(CONFIG_PPC_KUAP) += kuap.o
150 unsigned long kuap; /* opened segments for user access */ member290 .kuap = ~0UL, /* KUAP_NONE */ \
67 unsigned long kuap; member
[all...]