diff options
author | Hamish Martin <hamish.martin@alliedtelesis.co.nz> | 2017-02-24 13:52:10 +1300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-03-20 19:02:49 +1100 |
commit | cabed14891c52618688533bd413b206bf2ebf5c5 (patch) | |
tree | dadf3cb9d40c43dc5d0107b58f31794e076ca547 /arch/powerpc/kernel/head_64.S | |
parent | 476134070c037820bd909ff6e43e0d3eae33f376 (diff) | |
download | linux-cabed14891c52618688533bd413b206bf2ebf5c5.tar.gz linux-cabed14891c52618688533bd413b206bf2ebf5c5.tar.bz2 linux-cabed14891c52618688533bd413b206bf2ebf5c5.zip |
powerpc/64: Allow for THREAD_SIZE > 16k
Fix an assembler error when the THREAD_SIZE is greater than 16k.
Signed-off-by: Hamish Martin <hamish.martin@alliedtelesis.co.nz>
Reviewed-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel/head_64.S')
-rw-r--r-- | arch/powerpc/kernel/head_64.S | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/head_64.S b/arch/powerpc/kernel/head_64.S index 1dc5eae2ced3..0ddc602b33a4 100644 --- a/arch/powerpc/kernel/head_64.S +++ b/arch/powerpc/kernel/head_64.S @@ -949,7 +949,8 @@ start_here_multiplatform: LOAD_REG_ADDR(r3,init_thread_union) /* set up a stack pointer */ - addi r1,r3,THREAD_SIZE + LOAD_REG_IMMEDIATE(r1,THREAD_SIZE) + add r1,r3,r1 li r0,0 stdu r0,-STACK_FRAME_OVERHEAD(r1) |