Home
last modified time | relevance | path

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

/linux-6.1.9/arch/loongarch/include/asm/
Dptrace.h28 unsigned long csr_prmd; member
37 return arch_irqs_disabled_flags(regs->csr_prmd); in regs_irqs_disabled()
115 #define user_mode(regs) (((regs)->csr_prmd & PLV_MASK) == PLV_USER)
Dprocessor.h109 unsigned long csr_prmd; member
158 .csr_prmd = 0, \
Dstacktrace.h88 __asm__ __volatile__(CSRRD_ONE_REG(LOONGARCH_CSR_PRMD) : "=r" (regs->csr_prmd)); in prepare_frametrace()
/linux-6.1.9/arch/loongarch/kernel/
Dprocess.c78 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()
Dasm-offsets.c52 OFFSET(PT_PRMD, pt_regs, csr_prmd); in output_ptreg_defines()
111 thread.csr_prmd); in output_thread_defines()
Dptrace.c294 REG_OFFSET_NAME(csr_prmd, csr_prmd),
Dtraps.c190 printk("CSR prmd: %08lx ", regs->csr_prmd); in __show_regs()
/linux-6.1.9/arch/loongarch/mm/
Dfault.c257 if (likely(regs->csr_prmd & CSR_PRMD_PIE)) in do_page_fault()