Date: Tue, 9 Jun 2009 17:21:47 +0000 (UTC) From: Marcel Moolenaar <marcel@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r193846 - head/sys/arm/arm Message-ID: <200906091721.n59HLlaL078556@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: marcel Date: Tue Jun 9 17:21:47 2009 New Revision: 193846 URL: http://svn.freebsd.org/changeset/base/193846 Log: Disable interrupts to allow booting on firmware (e.g. U-Boot) that has interrupts enabled and active. Obtained from: Juniper Networks, Inc. Modified: head/sys/arm/arm/locore.S Modified: head/sys/arm/arm/locore.S ============================================================================== --- head/sys/arm/arm/locore.S Tue Jun 9 17:18:41 2009 (r193845) +++ head/sys/arm/arm/locore.S Tue Jun 9 17:21:47 2009 (r193846) @@ -73,6 +73,11 @@ ASENTRY_NP(_start) mov ip, r0 + /* Make sure interrupts are disabled. */ + mrs r7, cpsr + orr r7, r7, #(I32_bit|F32_bit) + msr cpsr_c, r7 + #if defined (FLASHADDR) && defined(LOADERRAMADDR) /* Check if we're running from flash. */ ldr r7, =FLASHADDR
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906091721.n59HLlaL078556>