From patchwork Wed May 15 19:56:07 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 244169 X-Patchwork-Delegate: albert.aribaud@free.fr Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 1B6BE2C0098 for ; Thu, 16 May 2013 06:03:33 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9DB934A04A; Wed, 15 May 2013 22:03:31 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Dx8Ps34SGfTi; Wed, 15 May 2013 22:03:31 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B19A54A04F; Wed, 15 May 2013 22:03:29 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C31DA4A040 for ; Wed, 15 May 2013 22:03:23 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id osP9JR8bn9Nc for ; Wed, 15 May 2013 22:03:19 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-oa0-f48.google.com (mail-oa0-f48.google.com [209.85.219.48]) by theia.denx.de (Postfix) with ESMTPS id 07E1E4A08A for ; Wed, 15 May 2013 22:03:11 +0200 (CEST) Received: by mail-oa0-f48.google.com with SMTP id i4so2729023oah.21 for ; Wed, 15 May 2013 13:03:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=+lr/1cq4aAfuZUOdNrWF5JHpvFzmwidI84ukkCKXw6o=; b=kgeu84KdjGGQ0ngWUWjUxAHJ3mCJ9Tytk3NSR3e3Ll1Ue2DatvdcxoMabI2o+t5iG/ G6WHjwPV40bNr/DkS9obpQy4yGxC1nCVptllQ8NNghVBeRaUO1sy5Q9EVpsHAGjcQifG Fn6QLRKMI8cWPqebA1qTHaMKuQv9C6ohRdUCOsQzjhiLivO6dZ7HvUmZc3cTA51H/Uk1 ZpDvBqUzBtge/PFK8ijpR3NY12+13fPZTFtCmHwul+gqpm+G7Ma/pO4rCihHC1x2/Pir i1k/ikBbfb2iop3lzL5MJPTiFPds6a67x+Lfy0C7C0s7ixK/bSjRAn0M7qeOGX5GLm38 L6Iw== X-Received: by 10.60.85.42 with SMTP id e10mr14597941oez.111.1368647796878; Wed, 15 May 2013 12:56:36 -0700 (PDT) Received: from rob-laptop.calxeda.com ([173.226.190.126]) by mx.google.com with ESMTPSA id qj8sm4440239oeb.2.2013.05.15.12.56.35 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 15 May 2013 12:56:36 -0700 (PDT) From: Rob Herring To: u-boot@lists.denx.de Date: Wed, 15 May 2013 14:56:07 -0500 Message-Id: <1368647776-12940-1-git-send-email-robherring2@gmail.com> X-Mailer: git-send-email 1.8.1.2 Cc: Rob Herring Subject: [U-Boot] [PATCH 01/10] ARM: move interrupt_init to before relocation X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de From: Rob Herring interrupt_init also sets up the abort stack, but is not setup before relocation. So any aborts during relocation will hang and not print out any useful information. Fix this by moving the interrupt_init to after the stack setup in board_init_f. Signed-off-by: Rob Herring --- arch/arm/lib/board.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/lib/board.c b/arch/arm/lib/board.c index 09ab4ad..6dbe7e2 100644 --- a/arch/arm/lib/board.c +++ b/arch/arm/lib/board.c @@ -447,6 +447,7 @@ void board_init_f(ulong bootflag) addr_sp += 128; /* leave 32 words for abort-stack */ gd->irq_sp = addr_sp; #endif + interrupt_init(); debug("New Stack Pointer is: %08lx\n", addr_sp);