mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
Add DTrace support for Book-E PowerPC.
Book-E got DTrace support for free with r281096&related. This adds the bits to the db_trap_glue() to support FBT. Relnotes: Yes
This commit is contained in:
parent
22cac86d54
commit
e3e38bc79f
1 changed files with 8 additions and 0 deletions
|
|
@ -796,8 +796,12 @@ db_trap_glue(struct trapframe *frame)
|
|||
{
|
||||
if (!(frame->srr1 & PSL_PR)
|
||||
&& (frame->exc == EXC_TRC || frame->exc == EXC_RUNMODETRC
|
||||
#ifdef AIM
|
||||
|| (frame->exc == EXC_PGM
|
||||
&& (frame->srr1 & 0x20000))
|
||||
#else
|
||||
|| (frame->exc == EXC_DEBUG)
|
||||
#endif
|
||||
|| frame->exc == EXC_BPT
|
||||
|| frame->exc == EXC_DSI)) {
|
||||
int type = frame->exc;
|
||||
|
|
@ -805,7 +809,11 @@ db_trap_glue(struct trapframe *frame)
|
|||
/* Ignore DTrace traps. */
|
||||
if (*(uint32_t *)frame->srr0 == EXC_DTRACE)
|
||||
return (0);
|
||||
#ifdef AIM
|
||||
if (type == EXC_PGM && (frame->srr1 & 0x20000)) {
|
||||
#else
|
||||
if (frame->cpu.booke.esr & ESR_PTR) {
|
||||
#endif
|
||||
type = T_BREAKPOINT;
|
||||
}
|
||||
return (kdb_trap(type, 0, frame));
|
||||
|
|
|
|||
Loading…
Reference in a new issue