Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935078AbZKYVkq (ORCPT ); Wed, 25 Nov 2009 16:40:46 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932227AbZKYVkn (ORCPT ); Wed, 25 Nov 2009 16:40:43 -0500 Received: from smtp.gentoo.org ([140.211.166.183]:58053 "EHLO smtp.gentoo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932177AbZKYVjL (ORCPT ); Wed, 25 Nov 2009 16:39:11 -0500 From: Mike Frysinger To: uclinux-dist-devel@blackfin.uclinux.org Cc: linux-kernel@vger.kernel.org, Graf Yang Subject: [PATCH 8/8] Blackfin: fix SMP build error in start_thread() Date: Wed, 25 Nov 2009 16:39:07 -0500 Message-Id: <1259185147-31999-9-git-send-email-vapier@gentoo.org> X-Mailer: git-send-email 1.6.5.3 In-Reply-To: <1259185147-31999-1-git-send-email-vapier@gentoo.org> References: <1259185147-31999-1-git-send-email-vapier@gentoo.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1275 Lines: 33 From: Graf Yang Commit d5ce528c8e46fa5afb9 (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 Signed-off-by: Mike Frysinger --- arch/blackfin/kernel/process.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/blackfin/kernel/process.c b/arch/blackfin/kernel/process.c index 430ae39..5cc7e2e 100644 --- a/arch/blackfin/kernel/process.c +++ b/arch/blackfin/kernel/process.c @@ -151,7 +151,7 @@ void start_thread(struct pt_regs *regs, unsigned long new_ip, unsigned long new_ regs->pc = new_ip; if (current->mm) regs->p5 = current->mm->start_data; -#ifdef CONFIG_SMP +#ifndef CONFIG_SMP task_thread_info(current)->l1_task_info.stack_start = (void *)current->mm->context.stack_start; task_thread_info(current)->l1_task_info.lowest_sp = (void *)new_sp; -- 1.6.5.3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/