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

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

Change 136243 by rrs@rrs-mips2-jnpr on 2008/02/26 14:16:06

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

Affected files ...

.. //depot/projects/mips2-jnpr/src/sys/mips/mips/mainbus.c#3 edit

Differences ...

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

@@ -257,6 +257,9 @@
 	/*
 	 * If this is a memory resource, map it into the kernel.
 	 */
+#ifdef TARGET_OCTEON
+         uint64_t temp;
+#endif  
 	if (rman_get_bustag(r) == MIPS_BUS_SPACE_MEM) {
 		caddr_t vaddr = 0;
 		{
@@ -271,7 +274,13 @@
 		}
 		rman_set_virtual(r, vaddr);
 		/* IBM-PC: the type of bus_space_handle_t is u_int */
+#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?200802261417.m1QEH2WY046341>