Lines Matching defs:trap

33 #include <sys/trap.h>
139 * Called from the trap handler when a processor trap occurs.
143 trap(struct regs *rp, caddr_t addr, uint32_t type, uint32_t mmu_fsr)
169 CPU_STATS_ADDQ(CPU, sys, trap, 1);
186 * Set up the current cred to use during this trap. u_cred
189 * the entire trap. If trapping from the kernel, this
242 * The instruction that got us to trap() will be reexecuted on
243 * return from the signal handler and we will trap to here again.
258 * trap() has have been called recursively and may
279 FTRACE_3("trap(): type=0x%lx, regs=0x%lx, addr=0x%lx",
288 * Check for user software trap.
405 * set ot_trap and return from the trap to the trampoline.
448 cmn_err(CE_PANIC, "trap: unknown type %x", type);
453 * address space. The addr passed into trap is really the
558 cmn_err(CE_PANIC, "trap: unknown type %x", type);
678 * indicating this trap was caused by
720 * indicate a hardware trace trap.
868 * or %stick trap, and %tick/%stick user emulation is
894 * we've come from a trap handler and pass
1085 case T_BREAKPOINT + T_USER: /* breakpoint trap (t 1) */
1108 * This trap is entered from sys_rtt in locore.s when,
1157 * window trap -- which is implemented by executing the
1158 * flushw instruction. The flushw can trap if any of the
1161 * that the user thread doesn't needlessly execute the trap
1164 * stack page -- since the second execution won't trap, but
1166 * would spin, continuously executing the trap instruction.
1174 case T_AST + T_USER: /* profiling or resched pseudo trap */
1224 out: /* We can't get here from a system trap */
1283 * unusual condition should be handled after the next trap or
1351 * Called from fp_traps when a floating point trap occurs.
1373 CPU_STATS_ADDQ(CPU, sys, trap, 1);
1385 * Set up the current cred to use during this trap. u_cred
1388 * the entire trap. If trapping from the kernel, this
1469 * The user had a trap handler installed. Jump to
1470 * the trap handler instead of signalling the process.
1557 * We can't get here from a system trap
1558 * Never restart any instruction which got here from an fp trap.
1693 * a trap as sun4u systems do.
1836 * trap so that it can call kpreempt. We achieve