From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wg0-f49.google.com ([74.125.82.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TKGSe-0005Mr-2G for barebox@lists.infradead.org; Fri, 05 Oct 2012 22:33:36 +0000 Received: by mail-wg0-f49.google.com with SMTP id gg4so1242132wgb.18 for ; Fri, 05 Oct 2012 15:33:35 -0700 (PDT) From: vj Date: Sat, 6 Oct 2012 00:33:06 +0200 Message-Id: <1349476393-25520-5-git-send-email-vicencb@gmail.com> In-Reply-To: <1349476393-25520-1-git-send-email-vicencb@gmail.com> References: <1349476393-25520-1-git-send-email-vicencb@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 04/11] ARM: ensure irqs are disabled To: barebox@lists.infradead.org Cc: vj Signed-off-by: vj --- arch/arm/cpu/cpu.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/cpu/cpu.c b/arch/arm/cpu/cpu.c index 87ba877..45c3a90 100644 --- a/arch/arm/cpu/cpu.c +++ b/arch/arm/cpu/cpu.c @@ -85,6 +85,12 @@ void arch_shutdown(void) : "r0", "r1", "r2", "r3", "r6", "r10", "r12", "lr", "cc", "memory" ); #endif + /* + * barebox normally does not use interrupts, but some functionalities + * (eg. OMAP4_USBBOOT) require them enabled. So be sure interrupts are + * disabled before exiting. + */ + __asm__ __volatile__ ("cpsid i\n"); } #ifdef CONFIG_THUMB2_BAREBOX -- 1.7.12.2 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox