Home
last modified time | relevance | path

Searched refs:tf_sstatus (Results 1 – 9 of 9) sorted by relevance

/freebsd/sys/riscv/riscv/
H A Dexec_machdep.c85 regs->sstatus = frame->tf_sstatus; in fill_regs()
152 frame->tf_sstatus &= ~SSTATUS_FS_MASK; in set_fpregs()
153 frame->tf_sstatus |= SSTATUS_FS_CLEAN; in set_fpregs()
224 mcp->mc_gpregs.gp_sstatus = tf->tf_sstatus; in get_mcontext()
245 if (((mcp->mc_gpregs.gp_sstatus ^ tf->tf_sstatus) & in set_mcontext()
258 tf->tf_sstatus = mcp->mc_gpregs.gp_sstatus; in set_mcontext()
299 td->td_frame->tf_sstatus &= ~SSTATUS_FS_MASK; in set_fpcontext()
300 td->td_frame->tf_sstatus |= SSTATUS_FS_OFF; in set_fpcontext()
311 td->td_frame->tf_sstatus |= SSTATUS_FS_CLEAN; in set_fpcontext()
H A Dgdb_machdep.c52 case GDB_REG_SSTATUS: return (&kdb_frame->tf_sstatus); in gdb_cpu_getreg()
97 case GDB_REG_SSTATUS: kdb_frame->tf_sstatus = regval; break; in gdb_cpu_setreg()
H A Dvm_machdep.c91 tf->tf_sstatus |= (SSTATUS_SPIE); /* Enable interrupts. */ in cpu_fork()
92 tf->tf_sstatus &= ~(SSTATUS_SPP); /* User mode. */ in cpu_fork()
H A Dtrap.c188 printf("sstatus: 0x%016lx\n", frame->tf_sstatus); in dump_regs()
440 frame->tf_sstatus &= ~SSTATUS_FS_MASK; in do_trap_user()
441 frame->tf_sstatus |= SSTATUS_FS_CLEAN; in do_trap_user()
H A Ddb_interface.c97 { "sstatus", DB_OFFSET(tf_sstatus), db_frame },
H A Dgenassym.c101 ASSYM(TF_SSTATUS, offsetof(struct trapframe, tf_sstatus));
/freebsd/sys/riscv/include/
H A Dframe.h55 uint64_t tf_sstatus; member
H A Dcpu.h43 #define TRAPF_USERMODE(tfp) (((tfp)->tf_sstatus & SSTATUS_SPP) == 0)
/freebsd/sys/cddl/dev/kinst/riscv/
H A Dkinst_isa.c312 frame->tf_sstatus |= SSTATUS_SPIE; in kinst_invop()
339 ks->status = frame->tf_sstatus; in kinst_invop()
340 frame->tf_sstatus &= ~SSTATUS_SPIE; in kinst_invop()