From: Stefan Kristiansson Date: Wed, 8 Jan 2014 11:15:05 +0000 (+0200) Subject: openrisc: head: use THREAD_SIZE instead of magic constant X-Git-Tag: v4.11-rc1~78^2~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2dc72437a5504bf8f4343ed83ae745afa388522;p=thirdparty%2Fkernel%2Flinux.git openrisc: head: use THREAD_SIZE instead of magic constant The stack size was hard coded to 0x2000, use the standard THREAD_SIZE definition loaded from thread_info.h. Signed-off-by: Stefan Kristiansson [shorne@gmail.com: Added body to the commit message] Signed-off-by: Stafford Horne --- diff --git a/arch/openrisc/kernel/head.S b/arch/openrisc/kernel/head.S index 2346c5b390957..63ba2d96a860a 100644 --- a/arch/openrisc/kernel/head.S +++ b/arch/openrisc/kernel/head.S @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include @@ -486,7 +487,8 @@ _start: /* * set up initial ksp and current */ - LOAD_SYMBOL_2_GPR(r1,init_thread_union+0x2000) // setup kernel stack + /* setup kernel stack */ + LOAD_SYMBOL_2_GPR(r1,init_thread_union + THREAD_SIZE) LOAD_SYMBOL_2_GPR(r10,init_thread_union) // setup current tophys (r31,r10) l.sw TI_KSP(r31), r1