svn commit: r261789 - head/sys/arm/arm

Warner Losh imp at FreeBSD.org
Wed Feb 12 03:19:36 UTC 2014


Author: imp
Date: Wed Feb 12 03:19:35 2014
New Revision: 261789
URL: http://svnweb.freebsd.org/changeset/base/261789

Log:
  Convert two while(1); statements into proper panics. Soon, kernels
  with early printf support will print this info... For kernels without,
  the observed behavior will be the same as it is now...

Modified:
  head/sys/arm/arm/machdep.c

Modified: head/sys/arm/arm/machdep.c
==============================================================================
--- head/sys/arm/arm/machdep.c	Wed Feb 12 02:08:42 2014	(r261788)
+++ head/sys/arm/arm/machdep.c	Wed Feb 12 03:19:35 2014	(r261789)
@@ -1056,10 +1056,10 @@ initarm(struct arm_boot_params *abp)
 #endif
 
 	if (OF_install(OFW_FDT, 0) == FALSE)
-		while (1);
+		panic("Cannot install FDT");
 
 	if (OF_init((void *)dtbp) != 0)
-		while (1);
+		panic("OF_init failed with the found device tree");
 
 	/* Grab physical memory regions information from device tree. */
 	if (fdt_get_mem_regions(mem_regions, &mem_regions_sz, &memsize) != 0)


More information about the svn-src-head mailing list