diff options
author | Kanoj Sarcar <kanoj@engr.sgi.com> | 2000-05-04 01:35:28 +0000 |
---|---|---|
committer | Kanoj Sarcar <kanoj@engr.sgi.com> | 2000-05-04 01:35:28 +0000 |
commit | 371d4d8c19c7573b0569013b72ee6e1a4ce75329 (patch) | |
tree | 77a478e701c30e49dd4917183d49a308fed29b06 /include/asm-mips64/stackframe.h | |
parent | e20d7226e0995c268ca3250acd6d1f63c84f7ea7 (diff) |
Fix the way we use the watchlo/watchhi registers to get to the task
struct of the currently executing thread: handle sign extension on
the watchlo register.
Diffstat (limited to 'include/asm-mips64/stackframe.h')
-rw-r--r-- | include/asm-mips64/stackframe.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/asm-mips64/stackframe.h b/include/asm-mips64/stackframe.h index 0257bb07a..83131cc82 100644 --- a/include/asm-mips64/stackframe.h +++ b/include/asm-mips64/stackframe.h @@ -90,8 +90,10 @@ lui k1, %hi(kernelsp) ld k1, %lo(kernelsp)(k1) #else - mfc0 k1, CP0_WATCHHI mfc0 k0, CP0_WATCHLO + mfc0 k1, CP0_WATCHHI + dsll32 k0, k0, 0 /* Get rid of sign extension */ + dsrl32 k0, k0, 0 /* Get rid of sign extension */ dsll32 k1, k1, 0 or k1, k1, k0 li k0, K0BASE |