svn commit: r193846 - head/sys/arm/arm
Marcel Moolenaar
marcel at FreeBSD.org
Tue Jun 9 17:21:48 UTC 2009
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
More information about the svn-src-head
mailing list