Searched refs:csr_prmd (Results 1 – 8 of 8) sorted by relevance
28 unsigned long csr_prmd; member37 return arch_irqs_disabled_flags(regs->csr_prmd); in regs_irqs_disabled()115 #define user_mode(regs) (((regs)->csr_prmd & PLV_MASK) == PLV_USER)
109 unsigned long csr_prmd; member158 .csr_prmd = 0, \
88 __asm__ __volatile__(CSRRD_ONE_REG(LOONGARCH_CSR_PRMD) : "=r" (regs->csr_prmd)); in prepare_frametrace()
78 prmd = regs->csr_prmd & ~(PLV_MASK); in start_thread()80 regs->csr_prmd = prmd; in start_thread()141 p->thread.csr_prmd = csr_read32(LOONGARCH_CSR_PRMD); in copy_thread()153 childregs->csr_prmd = p->thread.csr_prmd; in copy_thread()353 uregs[LOONGARCH_EF_CSR_PRMD] = regs->csr_prmd; in loongarch_dump_regs64()
52 OFFSET(PT_PRMD, pt_regs, csr_prmd); in output_ptreg_defines()111 thread.csr_prmd); in output_thread_defines()
294 REG_OFFSET_NAME(csr_prmd, csr_prmd),
190 printk("CSR prmd: %08lx ", regs->csr_prmd); in __show_regs()
257 if (likely(regs->csr_prmd & CSR_PRMD_PIE)) in do_page_fault()