summaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1997-06-04 07:19:06 +0000
committerRalf Baechle <ralf@linux-mips.org>1997-06-04 07:19:06 +0000
commite6bb071d768a6fc03a63193abe0991a75a762d35 (patch)
tree871e23aee274dcd9e8e585e3389bdd179c0dc6e0 /arch/mips/kernel
parentebfdb241d4dd590106da11da02e35d0d28b455f2 (diff)
Fix R3000 bug in GET_CURRENT.
Diffstat (limited to 'arch/mips/kernel')
-rw-r--r--arch/mips/kernel/head.S3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/mips/kernel/head.S b/arch/mips/kernel/head.S
index 4c3e5bd52..d7f3855c0 100644
--- a/arch/mips/kernel/head.S
+++ b/arch/mips/kernel/head.S
@@ -27,7 +27,10 @@
*/
#define GET_CURRENT(reg) \
lui reg, %hi(kernelsp); \
+ .set push; \
+ .set noreorder; \
lw reg, %lo(kernelsp)(reg); \
+ .set pop; \
ori reg, 8191; \
xori reg, 8191