svn commit: r257905 - projects/altix2/sys/ia64/sgisn
Marcel Moolenaar
marcel at FreeBSD.org
Sat Nov 9 23:27:38 UTC 2013
Author: marcel
Date: Sat Nov 9 23:27:37 2013
New Revision: 257905
URL: http://svnweb.freebsd.org/changeset/base/257905
Log:
Use an I/O MMU page size of 4KB when the kernel uses a page size less
than 16KB. Use a 16KB I/O MMU page size otherwise.
Modified:
projects/altix2/sys/ia64/sgisn/sgisn_pcib.c
Modified: projects/altix2/sys/ia64/sgisn/sgisn_pcib.c
==============================================================================
--- projects/altix2/sys/ia64/sgisn/sgisn_pcib.c Sat Nov 9 22:28:04 2013 (r257904)
+++ projects/altix2/sys/ia64/sgisn/sgisn_pcib.c Sat Nov 9 23:27:37 2013 (r257905)
@@ -58,7 +58,11 @@ __FBSDID("$FreeBSD$");
#include <ia64/sgisn/sgisn_pcib.h>
-#define SGISN_PCIB_PAGE_SHIFT 14 /* 16KB; Use 12 for 4KB */
+#if PAGE_SIZE < 16384
+#define SGISN_PCIB_PAGE_SHIFT 12 /* 4KB */
+#else
+#define SGISN_PCIB_PAGE_SHIFT 14 /* 16KB */
+#endif
#define SGISN_PCIB_PAGE_SIZE (1UL << SGISN_PCIB_PAGE_SHIFT)
#define SGISN_PCIB_PAGE_MASK (SGISN_PCIB_PAGE_SIZE - 1UL)
More information about the svn-src-projects
mailing list