diff options
author | jhibbits <jhibbits@FreeBSD.org> | 2015-08-27 03:44:06 +0000 |
---|---|---|
committer | jhibbits <jhibbits@FreeBSD.org> | 2015-08-27 03:44:06 +0000 |
commit | aa68072ffca481e6741370154f268088181ac583 (patch) | |
tree | 1b5b8024473a4d2072a229340612071ea02109d6 /sys | |
parent | 02dae40cb479f8d3a704cd8b5f2e397223fe5c3f (diff) | |
download | FreeBSD-src-aa68072ffca481e6741370154f268088181ac583.zip FreeBSD-src-aa68072ffca481e6741370154f268088181ac583.tar.gz |
Use the macro definition for EXC_PGM_TRAP, instead of the magic number.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/powerpc/powerpc/trap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/powerpc/powerpc/trap.c b/sys/powerpc/powerpc/trap.c index d2e5eaa..aa4b8ba 100644 --- a/sys/powerpc/powerpc/trap.c +++ b/sys/powerpc/powerpc/trap.c @@ -815,7 +815,7 @@ db_trap_glue(struct trapframe *frame) && (frame->exc == EXC_TRC || frame->exc == EXC_RUNMODETRC #ifdef AIM || (frame->exc == EXC_PGM - && (frame->srr1 & 0x20000)) + && (frame->srr1 & EXC_PGM_TRAP)) #else || (frame->exc == EXC_DEBUG) #endif @@ -827,7 +827,7 @@ db_trap_glue(struct trapframe *frame) if (*(uint32_t *)frame->srr0 == EXC_DTRACE) return (0); #ifdef AIM - if (type == EXC_PGM && (frame->srr1 & 0x20000)) { + if (type == EXC_PGM && (frame->srr1 & EXC_PGM_TRAP)) { #else if (frame->cpu.booke.esr & ESR_PTR) { #endif |