]> git.hungrycats.org Git - linux/commitdiff
[ARM PATCH] 1912/1: Wrong cache aliasing bit check
authorCatalin Marinas <catalin.marinas@com.rmk.(none)>
Fri, 4 Jun 2004 18:54:37 +0000 (19:54 +0100)
committerRussell King <rmk@flint.arm.linux.org.uk>
Fri, 4 Jun 2004 18:54:37 +0000 (19:54 +0100)
Patch from Catalin Marinas

arch/arm/mm/mmap.c: arch_get_unamapped_area() checks bit 9 in the cache type register for possible cache aliasing problems. Bit 11 should be checked instead.

arch/arm/mm/mmap.c

index eec9d7b00fbfc387b6c0013f5182c0c6bbfdfeeb..32c4b0e35b37768f7d75fa01194f1f9c3d0baac8 100644 (file)
@@ -40,7 +40,7 @@ arch_get_unmapped_area(struct file *filp, unsigned long addr,
         */
        cache_type = read_cpuid(CPUID_CACHETYPE);
        if (cache_type != read_cpuid(CPUID_ID)) {
-               aliasing = (cache_type | cache_type >> 12) & (1 << 9);
+               aliasing = (cache_type | cache_type >> 12) & (1 << 11);
                if (aliasing)
                        do_align = filp || flags & MAP_SHARED;
        }