]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] ARM SMP: Mark device mappings as "device" in ARMv6 parlance
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Tue, 26 Jul 2005 18:51:26 +0000 (19:51 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 26 Jul 2005 18:51:26 +0000 (19:51 +0100)
ARMv6 introduces memory types into the page tables.  Mark devices
mappings with the "shared device" memory type.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/mm-armv.c

index b19f00e99a21f43272a9acd7fa8093a1f5cd2f8a..e33fe4229d056e9ae098249ceb2b3b022cd87196 100644 (file)
@@ -425,6 +425,9 @@ static void __init build_mem_type_table(void)
                mem_types[MT_ROM].prot_sect |= PMD_SECT_APX|PMD_SECT_AP_WRITE;
                mem_types[MT_MINICLEAN].prot_sect |= PMD_SECT_APX|PMD_SECT_AP_WRITE;
                mem_types[MT_CACHECLEAN].prot_sect |= PMD_SECT_APX|PMD_SECT_AP_WRITE;
+
+               mem_types[MT_DEVICE].prot_pte |= L_PTE_BUFFERABLE;
+               mem_types[MT_DEVICE].prot_sect |= PMD_SECT_BUFFERED;
        }
 
        cp = &cache_policies[cachepolicy];