summaryrefslogtreecommitdiffstats
path: root/sys/arm/at91
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2014-05-18 00:32:35 +0000
committerian <ian@FreeBSD.org>2014-05-18 00:32:35 +0000
commit4fe09963e2eca9218185477c480c10539396b6da (patch)
tree749f807c710e4a77b0fe5255e3a2587746b68fc9 /sys/arm/at91
parent94d02a4a34cd9a42d22ad5760f8375f9e41c841c (diff)
downloadFreeBSD-src-4fe09963e2eca9218185477c480c10539396b6da.zip
FreeBSD-src-4fe09963e2eca9218185477c480c10539396b6da.tar.gz
MFC 265852: Map device memory using PTE_DEVICE rather than PTE_NOCACHE.
Diffstat (limited to 'sys/arm/at91')
-rw-r--r--sys/arm/at91/at91_machdep.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/arm/at91/at91_machdep.c b/sys/arm/at91/at91_machdep.c
index 1f4bf22..2a8a5c3 100644
--- a/sys/arm/at91/at91_machdep.c
+++ b/sys/arm/at91/at91_machdep.c
@@ -126,7 +126,7 @@ const struct arm_devmap_entry at91_devmap[] = {
0xfff00000,
0x00100000,
VM_PROT_READ|VM_PROT_WRITE,
- PTE_NOCACHE,
+ PTE_DEVICE,
},
/* There's a notion that we should do the rest of these lazily. */
/*
@@ -150,7 +150,7 @@ const struct arm_devmap_entry at91_devmap[] = {
AT91RM92_OHCI_BASE,
0x00100000,
VM_PROT_READ|VM_PROT_WRITE,
- PTE_NOCACHE,
+ PTE_DEVICE,
},
{
/* CompactFlash controller. Portion of EBI CS4 1MB */
@@ -158,7 +158,7 @@ const struct arm_devmap_entry at91_devmap[] = {
AT91RM92_CF_BASE,
0x00100000,
VM_PROT_READ|VM_PROT_WRITE,
- PTE_NOCACHE,
+ PTE_DEVICE,
},
/*
* The next two should be good for the 9260, 9261 and 9G20 since
@@ -170,7 +170,7 @@ const struct arm_devmap_entry at91_devmap[] = {
AT91SAM9G20_OHCI_BASE,
0x00100000,
VM_PROT_READ|VM_PROT_WRITE,
- PTE_NOCACHE,
+ PTE_DEVICE,
},
{
/* EBI CS3 256MB */
@@ -178,7 +178,7 @@ const struct arm_devmap_entry at91_devmap[] = {
AT91SAM9G20_NAND_BASE,
AT91SAM9G20_NAND_SIZE,
VM_PROT_READ|VM_PROT_WRITE,
- PTE_NOCACHE,
+ PTE_DEVICE,
},
/*
* The next should be good for the 9G45.
@@ -189,7 +189,7 @@ const struct arm_devmap_entry at91_devmap[] = {
AT91SAM9G45_OHCI_BASE,
0x00100000,
VM_PROT_READ|VM_PROT_WRITE,
- PTE_NOCACHE,
+ PTE_DEVICE,
},
{ 0, 0, 0, 0, 0, }
};
OpenPOWER on IntegriCloud