diff options
author | Nathan Whitehorn <nwhitehorn@FreeBSD.org> | 2010-10-03 16:02:53 +0000 |
---|---|---|
committer | Nathan Whitehorn <nwhitehorn@FreeBSD.org> | 2010-10-03 16:02:53 +0000 |
commit | eecadc7023154598887db6d3235e7bea39f8a5c7 (patch) | |
tree | 5324c5eeadb4a4688f7919bb59218d875fd448ba /sys/modules/mem | |
parent | 2d5db3709b38828168c28bb749450650b428969c (diff) | |
download | src-eecadc7023154598887db6d3235e7bea39f8a5c7.tar.gz src-eecadc7023154598887db6d3235e7bea39f8a5c7.zip |
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
Notes
Notes:
svn path=/head/; revision=213383
Diffstat (limited to 'sys/modules/mem')
-rw-r--r-- | sys/modules/mem/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/modules/mem/Makefile b/sys/modules/mem/Makefile index b4fdb9c8443a..c24e18f99f28 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" |