From 4ecfe212ec4a78464d1d07549d584f64478c5dfa Mon Sep 17 00:00:00 2001 From: dfr Date: Wed, 18 Apr 2001 14:10:43 +0000 Subject: Record the right value for tf_ndirty for kernel interruptions so that we can examine the interrupted register stack frame in DDB. --- sys/ia64/ia64/exception.S | 6 +++--- 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 -- cgit v1.1