summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>2001-04-18 14:10:43 +0000
committerdfr <dfr@FreeBSD.org>2001-04-18 14:10:43 +0000
commit4ecfe212ec4a78464d1d07549d584f64478c5dfa (patch)
tree41e51a9f6226e74bfc7edb59ed6cb569d846b1f1
parentdca2cb11d9e8be3e9f7bdc2d3c59e3ae955c949e (diff)
downloadFreeBSD-src-4ecfe212ec4a78464d1d07549d584f64478c5dfa.zip
FreeBSD-src-4ecfe212ec4a78464d1d07549d584f64478c5dfa.tar.gz
Record the right value for tf_ndirty for kernel interruptions so that
we can examine the interrupted register stack frame in DDB.
-rw-r--r--sys/ia64/ia64/exception.S6
-rw-r--r--sys/ia64/ia64/exception.s6
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/ia64/ia64/exception.S b/sys/ia64/ia64/exception.S
index f3cb6c9..0a27a83 100644
--- a/sys/ia64/ia64/exception.S
+++ b/sys/ia64/ia64/exception.S
@@ -1094,15 +1094,15 @@ ENTRY(exception_save, 0)
(p2) mov r16=ar.k5 // kernel backing store
mov rRNAT=ar.rnat
;;
+(p1) mov r16=rBSPSTORE // so we can figure out ndirty
(p2) mov ar.bspstore=r16 // switch bspstore
st8 [r2]=rRSC,16 // r2=&tf_cr_ifs
;;
st8 [r1]=rPFS,16 // r1=&tf_ar_bspstore
st8 [r2]=rIFS,16 // r2=&tf_ar_rnat
-(p2) mov r17=ar.bsp
+ mov r17=ar.bsp
;;
-(p2) sub r17=r17,r16 // ndirty (in bytes)
-(p1) mov r17=r0
+ sub r17=r17,r16 // ndirty (in bytes)
;;
st8 [r1]=rBSPSTORE,16 // r1=&tf_ndirty
st8 [r2]=rRNAT,16 // r2=&tf_ar_unat
diff --git a/sys/ia64/ia64/exception.s b/sys/ia64/ia64/exception.s
index f3cb6c9..0a27a83 100644
--- a/sys/ia64/ia64/exception.s
+++ b/sys/ia64/ia64/exception.s
@@ -1094,15 +1094,15 @@ ENTRY(exception_save, 0)
(p2) mov r16=ar.k5 // kernel backing store
mov rRNAT=ar.rnat
;;
+(p1) mov r16=rBSPSTORE // so we can figure out ndirty
(p2) mov ar.bspstore=r16 // switch bspstore
st8 [r2]=rRSC,16 // r2=&tf_cr_ifs
;;
st8 [r1]=rPFS,16 // r1=&tf_ar_bspstore
st8 [r2]=rIFS,16 // r2=&tf_ar_rnat
-(p2) mov r17=ar.bsp
+ mov r17=ar.bsp
;;
-(p2) sub r17=r17,r16 // ndirty (in bytes)
-(p1) mov r17=r0
+ sub r17=r17,r16 // ndirty (in bytes)
;;
st8 [r1]=rBSPSTORE,16 // r1=&tf_ndirty
st8 [r2]=rRNAT,16 // r2=&tf_ar_unat
OpenPOWER on IntegriCloud