Use the macro definition for EXC_PGM_TRAP, instead of the magic number.
This commit is contained in:
parent
02dae40cb4
commit
aa68072ffc
@ -815,7 +815,7 @@ db_trap_glue(struct trapframe *frame)
|
|||||||
&& (frame->exc == EXC_TRC || frame->exc == EXC_RUNMODETRC
|
&& (frame->exc == EXC_TRC || frame->exc == EXC_RUNMODETRC
|
||||||
#ifdef AIM
|
#ifdef AIM
|
||||||
|| (frame->exc == EXC_PGM
|
|| (frame->exc == EXC_PGM
|
||||||
&& (frame->srr1 & 0x20000))
|
&& (frame->srr1 & EXC_PGM_TRAP))
|
||||||
#else
|
#else
|
||||||
|| (frame->exc == EXC_DEBUG)
|
|| (frame->exc == EXC_DEBUG)
|
||||||
#endif
|
#endif
|
||||||
@ -827,7 +827,7 @@ db_trap_glue(struct trapframe *frame)
|
|||||||
if (*(uint32_t *)frame->srr0 == EXC_DTRACE)
|
if (*(uint32_t *)frame->srr0 == EXC_DTRACE)
|
||||||
return (0);
|
return (0);
|
||||||
#ifdef AIM
|
#ifdef AIM
|
||||||
if (type == EXC_PGM && (frame->srr1 & 0x20000)) {
|
if (type == EXC_PGM && (frame->srr1 & EXC_PGM_TRAP)) {
|
||||||
#else
|
#else
|
||||||
if (frame->cpu.booke.esr & ESR_PTR) {
|
if (frame->cpu.booke.esr & ESR_PTR) {
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user