svn commit: r242389 - head/sys/mips/cavium

Juli Mallett jmallett at FreeBSD.org
Wed Oct 31 04:23:37 UTC 2012


Author: jmallett
Date: Wed Oct 31 04:23:36 2012
New Revision: 242389
URL: http://svn.freebsd.org/changeset/base/242389

Log:
  If the CF physical base is 0, attach no CF devices.  This fixes a warning
  about a 0 passed to cvmx_phys_to_ptr on systems without a CF interface,
  such as the RSYS4GBE.

Modified:
  head/sys/mips/cavium/octeon_ebt3000_cf.c

Modified: head/sys/mips/cavium/octeon_ebt3000_cf.c
==============================================================================
--- head/sys/mips/cavium/octeon_ebt3000_cf.c	Wed Oct 31 04:07:52 2012	(r242388)
+++ head/sys/mips/cavium/octeon_ebt3000_cf.c	Wed Oct 31 04:23:36 2012	(r242389)
@@ -622,6 +622,8 @@ static void cf_identify (driver_t *drv, 
 		return;
 
 	phys_base = cvmx_sysinfo_get()->compact_flash_common_base_addr;
+	if (phys_base == 0)
+		return;
 	base_addr = cvmx_phys_to_ptr(phys_base);
 
         for (bus_region = 0; bus_region < 8; bus_region++)


More information about the svn-src-head mailing list