diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2015-03-04 21:06:57 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2015-03-04 21:06:57 +0000 |
commit | 07a9fad289a5fa746f3632db514fb2f5a0746f1a (patch) | |
tree | e9d34c1aa0d511fb8856e5ee797dc0a33e4a2795 /sys/powerpc/include | |
parent | 435175f50b7c1ed5560cfcdb9df9386c40c28fe3 (diff) | |
download | FreeBSD-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.h | 5 |
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; |