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
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to