summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2001-02-10 08:20:29 +0000
committerRalf Baechle <ralf@linux-mips.org>2001-02-10 08:20:29 +0000
commit2dda0bbe5196e8b77765dba9967b5a4f40f014d0 (patch)
tree209fc02bdcac1df058966f4315227d781227e65e
parent956a16d401427e6ff28e0b3a5f2226ce5ef319e6 (diff)
On mips64 get_context / set_context operate on 64-bit, not 32-bit values.
-rw-r--r--include/asm-mips64/pgtable.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-mips64/pgtable.h b/include/asm-mips64/pgtable.h
index ab9279aa8..14fc10bb3 100644
--- a/include/asm-mips64/pgtable.h
+++ b/include/asm-mips64/pgtable.h
@@ -761,7 +761,7 @@ extern inline unsigned long get_context(void)
__asm__ __volatile__(
".set noreorder\n\t"
- "mfc0 %0, $4\n\t"
+ "dmfc0 %0, $4\n\t"
".set reorder"
: "=r" (val));
@@ -772,7 +772,7 @@ extern inline void set_context(unsigned long val)
{
__asm__ __volatile__(
".set noreorder\n\t"
- "mtc0 %0, $4\n\t"
+ "dmtc0 %0, $4\n\t"
".set reorder"
: : "r" (val));
}