]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/powerpc/mm/mem.c
Merge branch 'topic/snd_card_new-err' into for-linus
[linux-2.6-omap-h63xx.git] / arch / powerpc / mm / mem.c
index b9e1a1da6e52a35f2276c798b71e717bb224ec88..f00f09a77f12f3d628d0b0f51c1a56ebccbadb75 100644 (file)
@@ -102,8 +102,8 @@ pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn,
                return ppc_md.phys_mem_access_prot(file, pfn, size, vma_prot);
 
        if (!page_is_ram(pfn))
-               vma_prot = __pgprot(pgprot_val(vma_prot)
-                                   | _PAGE_GUARDED | _PAGE_NO_CACHE);
+               vma_prot = pgprot_noncached(vma_prot);
+
        return vma_prot;
 }
 EXPORT_SYMBOL(phys_mem_access_prot);
@@ -132,7 +132,7 @@ int arch_add_memory(int nid, u64 start, u64 size)
        /* this should work for most non-highmem platforms */
        zone = pgdata->node_zones;
 
-       return __add_pages(zone, start_pfn, nr_pages);
+       return __add_pages(nid, zone, start_pfn, nr_pages);
 }
 #endif /* CONFIG_MEMORY_HOTPLUG */
 
@@ -488,7 +488,7 @@ void update_mmu_cache(struct vm_area_struct *vma, unsigned long address,
                 * we invalidate the TLB here, thus avoiding dcbst
                 * misbehaviour.
                 */
-               _tlbie(address, 0 /* 8xx doesn't care about PID */);
+               _tlbil_va(address, 0 /* 8xx doesn't care about PID */);
 #endif
                /* The _PAGE_USER test should really be _PAGE_EXEC, but
                 * older glibc versions execute some code from no-exec