summaryrefslogtreecommitdiffstats
path: root/sys/mips/sibyte
diff options
context:
space:
mode:
authorneel <neel@FreeBSD.org>2010-09-22 02:26:07 +0000
committerneel <neel@FreeBSD.org>2010-09-22 02:26:07 +0000
commitf11ed3a236abe9ee07151a89324bc2e344d38117 (patch)
tree2ae24ec35db2c6a9b30da181997cc5b7ed1b0b13 /sys/mips/sibyte
parentafb46784fa44f4dbe38b39c8dade0a73d9e392fa (diff)
downloadFreeBSD-src-f11ed3a236abe9ee07151a89324bc2e344d38117.zip
FreeBSD-src-f11ed3a236abe9ee07151a89324bc2e344d38117.tar.gz
Enforce that 'pmap_kenter()' is only used to establish cacheable mappings.
Mappings with other cacheability attributes can be established, if needed, by using 'pmap_kenter_attr()'. Suggested by: jchandra, imp
Diffstat (limited to 'sys/mips/sibyte')
-rw-r--r--sys/mips/sibyte/sb_zbpci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/mips/sibyte/sb_zbpci.c b/sys/mips/sibyte/sb_zbpci.c
index 9a09645..243ed08 100644
--- a/sys/mips/sibyte/sb_zbpci.c
+++ b/sys/mips/sibyte/sb_zbpci.c
@@ -349,7 +349,7 @@ zbpci_config_space_va(int bus, int slot, int func, int reg, int bytes)
pa_page = pa & ~(PAGE_SIZE - 1);
if (zbpci_config_space[cpu].paddr != pa_page) {
pmap_kremove(va_page);
- pmap_kenter(va_page, pa_page);
+ pmap_kenter_attr(va_page, pa_page, PTE_C_UNCACHED);
zbpci_config_space[cpu].paddr = pa_page;
}
return (va_page + (pa - pa_page));
OpenPOWER on IntegriCloud