aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mm/mmu.c
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2008-09-06 16:07:45 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-10-01 11:41:00 -0400
commit639b0ae7f5bcd645862a9c3ea2d4321475c71d7a (patch)
tree34e26970f8c907c9027037fc9ae5a9ab7cd2d1a2 /arch/arm/mm/mmu.c
parent9e8b5199a753a2583a8ef8360e6428304a242283 (diff)
[ARM] Convert ARMv6 and ARMv7 to use new memory types
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mm/mmu.c')
-rw-r--r--arch/arm/mm/mmu.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c
index cfc0add4874e..04602288da2c 100644
--- a/arch/arm/mm/mmu.c
+++ b/arch/arm/mm/mmu.c
@@ -194,7 +194,6 @@ static struct mem_type mem_types[] = {
194 }, 194 },
195 [MT_DEVICE_NONSHARED] = { /* ARMv6 non-shared device */ 195 [MT_DEVICE_NONSHARED] = { /* ARMv6 non-shared device */
196 .prot_pte = PROT_PTE_DEVICE | L_PTE_MT_DEV_NONSHARED, 196 .prot_pte = PROT_PTE_DEVICE | L_PTE_MT_DEV_NONSHARED,
197 .prot_pte_ext = PTE_EXT_TEX(2),
198 .prot_l1 = PMD_TYPE_TABLE, 197 .prot_l1 = PMD_TYPE_TABLE,
199 .prot_sect = PROT_SECT_DEVICE | PMD_SECT_TEX(2), 198 .prot_sect = PROT_SECT_DEVICE | PMD_SECT_TEX(2),
200 .domain = DOMAIN_IO, 199 .domain = DOMAIN_IO,
@@ -289,8 +288,6 @@ static void __init build_mem_type_table(void)
289 * in xsc3 parlance, Uncached Normal in ARMv6 parlance). 288 * in xsc3 parlance, Uncached Normal in ARMv6 parlance).
290 */ 289 */
291 if (cpu_is_xsc3() || cpu_arch >= CPU_ARCH_ARMv6) { 290 if (cpu_is_xsc3() || cpu_arch >= CPU_ARCH_ARMv6) {
292 mem_types[MT_DEVICE_WC].prot_pte_ext |= PTE_EXT_TEX(1);
293 mem_types[MT_DEVICE_WC].prot_pte &= ~L_PTE_BUFFERABLE;
294 mem_types[MT_DEVICE_WC].prot_sect |= PMD_SECT_TEX(1); 291 mem_types[MT_DEVICE_WC].prot_sect |= PMD_SECT_TEX(1);
295 mem_types[MT_DEVICE_WC].prot_sect &= ~PMD_SECT_BUFFERABLE; 292 mem_types[MT_DEVICE_WC].prot_sect &= ~PMD_SECT_BUFFERABLE;
296 } 293 }
@@ -351,7 +348,6 @@ static void __init build_mem_type_table(void)
351 /* 348 /*
352 * Mark the device area as "shared device" 349 * Mark the device area as "shared device"
353 */ 350 */
354 mem_types[MT_DEVICE].prot_pte |= L_PTE_BUFFERABLE;
355 mem_types[MT_DEVICE].prot_sect |= PMD_SECT_BUFFERED; 351 mem_types[MT_DEVICE].prot_sect |= PMD_SECT_BUFFERED;
356 352
357#ifdef CONFIG_SMP 353#ifdef CONFIG_SMP