summaryrefslogtreecommitdiff
path: root/include/asm-sh/entry-macros.S
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-sh/entry-macros.S')
-rw-r--r--include/asm-sh/entry-macros.S3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asm-sh/entry-macros.S b/include/asm-sh/entry-macros.S
index 099fe8189bbe..500030eae7aa 100644
--- a/include/asm-sh/entry-macros.S
+++ b/include/asm-sh/entry-macros.S
@@ -23,8 +23,9 @@
#ifdef CONFIG_HAS_SR_RB
stc r7_bank, \ti
#else
- mov #((THREAD_SIZE - 1)>> 8) ^ 0xff, \tmp
+ mov #((THREAD_SIZE - 1) >> 10) ^ 0xff, \tmp
shll8 \tmp
+ shll2 \tmp
mov r15, \ti
and \tmp, \ti
#endif