Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Feb 2008 14:15:59 GMT
From:      "Randall R. Stewart" <rrs@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 136242 for review
Message-ID:  <200802261415.m1QEFx6U046282@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=136242

Change 136242 by rrs@rrs-mips2-jnpr on 2008/02/26 14:15:35

	For octeon get rid of the warning that breaks the build.

Affected files ...

.. //depot/projects/mips2-jnpr/src/sys/mips/mips/nexus.c#6 edit

Differences ...

==== //depot/projects/mips2-jnpr/src/sys/mips/mips/nexus.c#6 (text+ko) ====

@@ -360,7 +360,9 @@
 nexus_activate_resource(device_t bus, device_t child, int type, int rid,
     struct resource *r)
 {
-
+#ifdef TARGET_OCTEON
+        uint64_t temp;
+#endif		
 	/*
 	 * If this is a memory resource, track the direct mapping
 	 * in the uncached MIPS KSEG1 segment.
@@ -371,7 +373,13 @@
 		vaddr = (void *)MIPS_PHYS_TO_KSEG1((intptr_t)rman_get_start(r));
 		rman_set_virtual(r, vaddr);
 		rman_set_bustag(r, MIPS_BUS_SPACE_MEM);
+#ifdef TARGET_OCTEON
+		temp = 0x0000000000000000;
+		temp |= (uint32_t)vaddr;
+		rman_set_bushandle(r, (bus_space_handle_t)temp);
+#else		
 		rman_set_bushandle(r, (bus_space_handle_t)vaddr);
+#endif		
 	}
 
 	return (rman_activate_resource(r));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802261415.m1QEFx6U046282>