mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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 <[email protected]> [[email protected]: Added body to the commit message] Signed-off-by: Stafford Horne <[email protected]>
This commit is contained in:
parent
742fb582b4
commit
c2dc72437a
1 changed files with 3 additions and 1 deletions
|
|
@ -24,6 +24,7 @@
|
|||
#include <asm/page.h>
|
||||
#include <asm/mmu.h>
|
||||
#include <asm/pgtable.h>
|
||||
#include <asm/thread_info.h>
|
||||
#include <asm/cache.h>
|
||||
#include <asm/spr_defs.h>
|
||||
#include <asm/asm-offsets.h>
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue