diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2006-01-12 04:06:07 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-12 12:08:59 -0500 |
commit | dc8f6029cd51af1b148846a32e68d69013a5cc0f (patch) | |
tree | 64288cee77b341c2c39accbe5f593ff9445e18f1 /arch/mips/sgi-ip27 | |
parent | 40bc9c671a9f0a5189c07a2b4280aec9b40e30cd (diff) |
[PATCH] mips: task_thread_info()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/mips/sgi-ip27')
-rw-r--r-- | arch/mips/sgi-ip27/ip27-smp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/sgi-ip27/ip27-smp.c b/arch/mips/sgi-ip27/ip27-smp.c index 3a8291b7d26d..dbef3f6b5650 100644 --- a/arch/mips/sgi-ip27/ip27-smp.c +++ b/arch/mips/sgi-ip27/ip27-smp.c | |||
@@ -168,8 +168,8 @@ void __init prom_prepare_cpus(unsigned int max_cpus) | |||
168 | */ | 168 | */ |
169 | void __init prom_boot_secondary(int cpu, struct task_struct *idle) | 169 | void __init prom_boot_secondary(int cpu, struct task_struct *idle) |
170 | { | 170 | { |
171 | unsigned long gp = (unsigned long) idle->thread_info; | 171 | unsigned long gp = (unsigned long)task_thread_info(idle); |
172 | unsigned long sp = gp + THREAD_SIZE - 32; | 172 | unsigned long sp = __KSTK_TOS(idle); |
173 | 173 | ||
174 | LAUNCH_SLAVE(cputonasid(cpu),cputoslice(cpu), | 174 | LAUNCH_SLAVE(cputonasid(cpu),cputoslice(cpu), |
175 | (launch_proc_t)MAPPED_KERN_RW_TO_K0(smp_bootstrap), | 175 | (launch_proc_t)MAPPED_KERN_RW_TO_K0(smp_bootstrap), |