Skip to content

Commit aa23531

Browse files
Graf Yangvapier
authored andcommitted
Blackfin: fix SMP build error in start_thread()
Commit d5ce528 (Blackfin: convert irq/process to asm-generic) incorrectly merged the smp and non-smp cases of start_thread() causing the L1 stack to be setup on the SMP port instead of the UP port. Signed-off-by: Graf Yang <graf.yang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
1 parent 05bad36 commit aa23531

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/blackfin/kernel/process.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ void start_thread(struct pt_regs *regs, unsigned long new_ip, unsigned long new_
151151
regs->pc = new_ip;
152152
if (current->mm)
153153
regs->p5 = current->mm->start_data;
154-
#ifdef CONFIG_SMP
154+
#ifndef CONFIG_SMP
155155
task_thread_info(current)->l1_task_info.stack_start =
156156
(void *)current->mm->context.stack_start;
157157
task_thread_info(current)->l1_task_info.lowest_sp = (void *)new_sp;

0 commit comments

Comments
 (0)