Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Hamish Martin and committed by
Michael Ellerman
cabed148 47613407

+2 -1
+2 -1
arch/powerpc/kernel/head_64.S
··· 949 949 LOAD_REG_ADDR(r3,init_thread_union) 950 950 951 951 /* set up a stack pointer */ 952 - addi r1,r3,THREAD_SIZE 952 + LOAD_REG_IMMEDIATE(r1,THREAD_SIZE) 953 + add r1,r3,r1 953 954 li r0,0 954 955 stdu r0,-STACK_FRAME_OVERHEAD(r1) 955 956