Lines Matching defs:trap
57 #include <sys/trap.h>
105 #define USER 0x10000 /* user-mode flag added to trap type */
116 "Divide error", /* trap id 0 */
117 "Debug", /* trap id 1 */
118 "NMI interrupt", /* trap id 2 */
119 "Breakpoint", /* trap id 3 */
120 "Overflow", /* trap id 4 */
121 "BOUND range exceeded", /* trap id 5 */
122 "Invalid opcode", /* trap id 6 */
123 "Device not available", /* trap id 7 */
124 "Double fault", /* trap id 8 */
125 "Coprocessor segment overrun", /* trap id 9 */
126 "Invalid TSS", /* trap id 10 */
127 "Segment not present", /* trap id 11 */
128 "Stack segment fault", /* trap id 12 */
129 "General protection", /* trap id 13 */
130 "Page fault", /* trap id 14 */
131 "Reserved", /* trap id 15 */
132 "x87 floating point error", /* trap id 16 */
133 "Alignment check", /* trap id 17 */
134 "Machine check", /* trap id 18 */
135 "SIMD floating point exception", /* trap id 19 */
160 * trap trace record for cpu0 is allocated here.
161 * trap trace records for non-boot cpus are allocated in mp_startup_init().
174 * default trap buffer size
202 trap_name = "trap";
340 * The bytes of an lcall instruction used for the syscall trap.
456 * Called from the trap handler when a processor trap occurs.
459 * trap() by 'goto out' or by falling through.
460 * Note Also: trap() is usually called with interrupts enabled, (PS_IE == 1)
465 trap(struct regs *rp, caddr_t addr, processorid_t cpuid)
493 CPU_STATS_ADDQ(CPU, sys, trap, 1);
539 * Set up the current cred to use during this trap. u_cred
542 * the entire trap. If trapping from the kernel, this
587 FTRACE_2("trap(): type=0x%lx, regs=0x%lx",
601 printf("trap: Unknown trap type %d in user mode\n",
809 * the code in locore.s that fields the system call trap.
812 * trap gate sequence. We just have to adjust the pc.
886 "prefetch at %p in pid %d generated a trap!",
934 * trap. Check for that case here. If this occurs on a CPU which
994 /* check if we took a kernel trap on behalf of user */
1016 /* check if we took a kernel trap on behalf of user */
1045 * on older CPUs can cause this trap to occur; in
1063 case T_BPTFLT: /* breakpoint trap */
1083 * change the privilege level. So we take a trap at
1087 * the system call, deal with the single-step trap.
1257 * #np trap.
1261 * Since this is a not-present trap, rp->r_pc points to
1345 case T_BPTFLT + USER: /* breakpoint trap */
1373 case T_AST + USER: /* profiling, resched, h/w error pseudo trap */
1404 * We can't get here from a system trap
1441 * unusual condition should be handled after the next trap or
1446 * If a single-step trap occurred on a syscall (see above)
1516 out: /* We can't get here from a system trap */
1601 * trap so that it can call kpreempt. We achieve
1857 * with the lwp, because the act of taking the #gp trap overwrites most of
1905 * crushed frame from the #gp trap frame itself.
2178 printf(fmt2, "trap", type);
2220 * at trap time (if any)