Changeset View
Changeset View
Standalone View
Standalone View
sys/sparc64/sparc64/trap.c
Show First 20 Lines • Show All 328 Lines • ▼ Show 20 Lines | if ((tf->tf_tstate & TSTATE_PRIV) == 0) { | ||||
} | } | ||||
userret(td, tf); | userret(td, tf); | ||||
} else { | } else { | ||||
KASSERT((tf->tf_type & T_KERNEL) != 0, | KASSERT((tf->tf_type & T_KERNEL) != 0, | ||||
("trap: kernel trap isn't")); | ("trap: kernel trap isn't")); | ||||
if (kdb_active) { | if (kdb_active) { | ||||
kdb_reenter(); | kdb_reenter(true); | ||||
return; | return; | ||||
} | } | ||||
switch (tf->tf_type & ~T_KERNEL) { | switch (tf->tf_type & ~T_KERNEL) { | ||||
case T_BREAKPOINT: | case T_BREAKPOINT: | ||||
case T_KSTACK_FAULT: | case T_KSTACK_FAULT: | ||||
error = (kdb_trap(tf->tf_type, 0, tf) == 0); | error = (kdb_trap(tf->tf_type, 0, tf) == 0); | ||||
TF_DONE(tf); | TF_DONE(tf); | ||||
▲ Show 20 Lines • Show All 272 Lines • Show Last 20 Lines |