Home
last modified time | relevance | path

Searched refs:csr_prmd (Results 1 – 11 of 11) sorted by relevance

/openbmc/linux/arch/loongarch/kernel/
H A Dprocess.c80 prmd = regs->csr_prmd & ~(PLV_MASK); in start_thread()
82 regs->csr_prmd = prmd; in start_thread()
161 p->thread.csr_prmd = csr_read32(LOONGARCH_CSR_PRMD); in copy_thread()
173 childregs->csr_prmd = p->thread.csr_prmd; in copy_thread()
372 uregs[LOONGARCH_EF_CSR_PRMD] = regs->csr_prmd; in loongarch_dump_regs64()
H A Dtraps.c341 print_prmd(regs->csr_prmd); in __show_regs()
532 if (regs->csr_prmd & CSR_PRMD_PIE) in do_ale()
559 if (regs->csr_prmd & CSR_PRMD_PIE) in do_ale()
596 if (regs->csr_prmd & CSR_PRMD_PIE) in do_bce()
662 if (regs->csr_prmd & CSR_PRMD_PIE) in do_bce()
684 if (regs->csr_prmd & CSR_PRMD_PIE) in do_bp()
750 if (regs->csr_prmd & CSR_PRMD_PIE) in do_bp()
994 if (regs->csr_prmd & CSR_PRMD_PIE) in do_lbt()
1008 if (regs->csr_prmd & CSR_PRMD_PIE) in do_lbt()
H A Dkprobes.c116 kcb->saved_status = regs->csr_prmd; in save_local_irqflag()
117 regs->csr_prmd &= ~CSR_PRMD_PIE; in save_local_irqflag()
124 regs->csr_prmd = kcb->saved_status; in restore_local_irqflag()
H A Dhw_breakpoint.c225 regs->csr_prmd |= CSR_PRMD_PWE; in hw_breakpoint_control()
241 regs->csr_prmd &= ~CSR_PRMD_PWE; in hw_breakpoint_control()
453 regs->csr_prmd |= CSR_PRMD_PWE; in update_bp_registers()
465 regs->csr_prmd &= ~CSR_PRMD_PWE; in update_bp_registers()
543 regs->csr_prmd |= CSR_PRMD_PWE; in hw_breakpoint_thread_switch()
H A Dasm-offsets.c53 OFFSET(PT_PRMD, pt_regs, csr_prmd); in output_ptreg_defines()
115 thread.csr_prmd); in output_thread_defines()
H A Dkgdb.c433 regs->csr_prmd |= CSR_PRMD_PWE; in kgdb_arch_handle_exception()
438 regs->csr_prmd &= ~CSR_PRMD_PWE; in kgdb_arch_handle_exception()
H A Dptrace.c822 REG_OFFSET_NAME(csr_prmd, csr_prmd),
/openbmc/linux/arch/loongarch/include/asm/
H A Dptrace.h29 unsigned long csr_prmd; member
38 return arch_irqs_disabled_flags(regs->csr_prmd); in regs_irqs_disabled()
150 #define user_mode(regs) (((regs)->csr_prmd & PLV_MASK) == PLV_USER)
H A Dprocessor.h121 unsigned long csr_prmd; member
167 .csr_prmd = 0, \
H A Dstacktrace.h88 __asm__ __volatile__(CSRRD_ONE_REG(LOONGARCH_CSR_PRMD) : "=r" (regs->csr_prmd)); in prepare_frametrace()
/openbmc/linux/arch/loongarch/mm/
H A Dfault.c262 if (likely(regs->csr_prmd & CSR_PRMD_PIE)) in do_page_fault()