diff options
author | dfr <dfr@FreeBSD.org> | 2001-04-18 14:10:43 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 2001-04-18 14:10:43 +0000 |
commit | 4ecfe212ec4a78464d1d07549d584f64478c5dfa (patch) | |
tree | 41e51a9f6226e74bfc7edb59ed6cb569d846b1f1 /sys/ia64 | |
parent | dca2cb11d9e8be3e9f7bdc2d3c59e3ae955c949e (diff) | |
download | FreeBSD-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.
Diffstat (limited to 'sys/ia64')
-rw-r--r-- | sys/ia64/ia64/exception.S | 6 | ||||
-rw-r--r-- | sys/ia64/ia64/exception.s | 6 |
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 |