summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/include
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2015-03-04 21:06:57 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2015-03-04 21:06:57 +0000
commit07a9fad289a5fa746f3632db514fb2f5a0746f1a (patch)
treee9d34c1aa0d511fb8856e5ee797dc0a33e4a2795 /sys/powerpc/include
parent435175f50b7c1ed5560cfcdb9df9386c40c28fe3 (diff)
downloadFreeBSD-src-07a9fad289a5fa746f3632db514fb2f5a0746f1a.zip
FreeBSD-src-07a9fad289a5fa746f3632db514fb2f5a0746f1a.tar.gz
The AIM DAR (data access fault address register) and Book-E DEAR registers
have the same meaning and occupy the same memory address in the trapframe courtesy of union. Avoid some pointless #ifdef by spelling them both 'DAR' in the trapframe.
Diffstat (limited to 'sys/powerpc/include')
-rw-r--r--sys/powerpc/include/frame.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/powerpc/include/frame.h b/sys/powerpc/include/frame.h
index d2100a1..e6fb103 100644
--- a/sys/powerpc/include/frame.h
+++ b/sys/powerpc/include/frame.h
@@ -56,14 +56,13 @@ struct trapframe {
register_t srr0;
register_t srr1;
register_t exc;
+ register_t dar; /* DAR/DEAR filled in on DSI traps */
union {
struct {
- /* dar & dsisr are only filled on a DSI trap */
- register_t dar;
+ /* dsisr only filled on a DSI trap */
register_t dsisr;
} aim;
struct {
- register_t dear;
register_t esr;
register_t dbcr0;
} booke;
OpenPOWER on IntegriCloud