Searched refs:SSTATUS_SPP (Results 1 - 4 of 4) sorted by relevance

/freebsd-13-stable/sys/riscv/include/
H A Dcpu.h45 #define TRAPF_USERMODE(tfp) (((tfp)->tf_sstatus & SSTATUS_SPP) == 0)
H A Driscvreg.h61 #define SSTATUS_SPP (1 << 8) macro
/freebsd-13-stable/sys/riscv/riscv/
H A Dtrap.c274 KASSERT((csr_read(sstatus) & (SSTATUS_SPP | SSTATUS_SIE)) ==
275 SSTATUS_SPP, ("Came from S mode with interrupts enabled"));
342 KASSERT((csr_read(sstatus) & (SSTATUS_SPP | SSTATUS_SIE)) == 0,
H A Dvm_machdep.c94 tf->tf_sstatus &= ~(SSTATUS_SPP); /* User mode. */

Completed in 60 milliseconds