Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Jun 2010 11:15:13 +0000 (UTC)
From:      Juli Mallett <jmallett@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r208740 - user/jmallett/octeon/sys/mips/cavium
Message-ID:  <201006021115.o52BFDkC037481@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 	}
 



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