svn commit: r208740 - user/jmallett/octeon/sys/mips/cavium
Juli Mallett
jmallett at FreeBSD.org
Wed Jun 2 11:15:13 UTC 2010
Author: jmallett
Date: Wed Jun 2 11:15:12 2010
New Revision: 208740
URL: http://svn.freebsd.org/changeset/base/208740
Log:
Note some lurking problems with io ports (namely the dependence on virtual
mappings.)
Modified:
user/jmallett/octeon/sys/mips/cavium/octopci.c
Modified: user/jmallett/octeon/sys/mips/cavium/octopci.c
==============================================================================
--- user/jmallett/octeon/sys/mips/cavium/octopci.c Wed Jun 2 11:13:49 2010 (r208739)
+++ user/jmallett/octeon/sys/mips/cavium/octopci.c Wed Jun 2 11:15:12 2010 (r208740)
@@ -208,6 +208,15 @@ octopci_alloc_resource(device_t bus, dev
break;
case SYS_RES_IOPORT:
rman_set_bushandle(res, CVMX_ADDR_DID(CVMX_FULL_DID(CVMX_OCT_DID_PCI, CVMX_OCT_SUBDID_PCI_IO)) + rman_get_start(res));
+ /*
+ * XXX
+ * We should just disallow use of io ports on !n64 since without
+ * 64-bit PTEs we can't even do a 32-bit virtual address
+ * mapped to them.
+ */
+#if 0
+ rman_set_virtual(res, (void *)rman_get_bushandle(res));
+#endif
break;
}
More information about the svn-src-user
mailing list