summaryrefslogtreecommitdiffstats
path: root/sys/modules
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2010-10-03 16:02:53 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2010-10-03 16:02:53 +0000
commit91a938a7c56ab798b0e49b73d0efc3791f267969 (patch)
tree5324c5eeadb4a4688f7919bb59218d875fd448ba /sys/modules
parente68de2436ecf5f86bace8ec1f2e9608ee66d4796 (diff)
downloadFreeBSD-src-91a938a7c56ab798b0e49b73d0efc3791f267969.zip
FreeBSD-src-91a938a7c56ab798b0e49b73d0efc3791f267969.tar.gz
Add a memory-range interface to /dev/mem on PowerPC using PAT attributes.
Unlike actual MTRR, this only controls the mapping attributes for subsequent mmap() of /dev/mem. Nonetheless, the support is sufficiently MTRR-like that Xorg can use it, which translates into an enormous increase in graphics performance on PowerPC. MFC after: 2 weeks
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/mem/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/modules/mem/Makefile b/sys/modules/mem/Makefile
index b4fdb9c..c24e18f 100644
--- a/sys/modules/mem/Makefile
+++ b/sys/modules/mem/Makefile
@@ -6,7 +6,7 @@
KMOD= mem
SRCS= memdev.c mem.c
-.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386"
+.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} = "powerpc"
SRCS+= memutil.c
.endif
.if ${MACHINE_CPUARCH} == "i386"
OpenPOWER on IntegriCloud