sh: Add support for 4K stacks.
This enables support for 4K stacks on SH. Currently this depends on DEBUG_KERNEL, but likely all boards will switch to this as the default in the future. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
@@ -716,8 +716,8 @@ ENTRY(handle_exception)
|
||||
bt/s 1f ! It's a kernel to kernel transition.
|
||||
mov r15, k0 ! save original stack to k0
|
||||
/* User space to kernel */
|
||||
mov #0x20, k1
|
||||
shll8 k1 ! k1 := 8192 (== THREAD_SIZE)
|
||||
mov #(THREAD_SIZE >> 8), k1
|
||||
shll8 k1 ! k1 := THREAD_SIZE
|
||||
add current, k1
|
||||
mov k1, r15 ! change to kernel stack
|
||||
!
|
||||
|
Reference in New Issue
Block a user