aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mm/mmu.c
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2007-04-21 05:52:32 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2007-04-21 15:36:02 -0400
commitc172cc92c87103c98b5cd359205b684bf99b5067 (patch)
tree5d0591b701778ab21f290b5ede50615d6ca786a3 /arch/arm/mm/mmu.c
parentb29e9f5e64fb90d2e4be1c7ef8c925b56669c74a (diff)
[ARM] mm 6: allow mem_types table to specify extended pte attributes
Add prot_pte_ext to the mem_types table to allow the extended pte attributes to be passed to set_pte_ext(), thereby permitting us to specify memory type information for the hardware PTE entries. 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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c
index 6cb80b4973d2..360405515bbd 100644
--- a/arch/arm/mm/mmu.c
+++ b/arch/arm/mm/mmu.c
@@ -391,7 +391,8 @@ static void __init alloc_init_pte(pmd_t *pmd, unsigned long addr,
391 391
392 pte = pte_offset_kernel(pmd, addr); 392 pte = pte_offset_kernel(pmd, addr);
393 do { 393 do {
394 set_pte_ext(pte, pfn_pte(pfn, __pgprot(type->prot_pte)), 0); 394 set_pte_ext(pte, pfn_pte(pfn, __pgprot(type->prot_pte)),
395 type->prot_pte_ext);
395 pfn++; 396 pfn++;
396 } while (pte++, addr += PAGE_SIZE, addr != end); 397 } while (pte++, addr += PAGE_SIZE, addr != end);
397} 398}