Commit 52e8bfd8 authored by Russell King's avatar Russell King

ARM: Fix wrong shared bit for CPU write buffer bug test

It is unpredictable to have the same memory mapped using different
shared bit settings for ARMv6 and ARMv7 CPUs.  Fix this for the CPU
write buffer bug test.
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent d9fd3ab8
...@@ -207,9 +207,8 @@ void __init check_writebuffer_bugs(void) ...@@ -207,9 +207,8 @@ void __init check_writebuffer_bugs(void)
page = alloc_page(GFP_KERNEL); page = alloc_page(GFP_KERNEL);
if (page) { if (page) {
unsigned long *p1, *p2; unsigned long *p1, *p2;
pgprot_t prot = __pgprot(L_PTE_PRESENT|L_PTE_YOUNG| pgprot_t prot = __pgprot_modify(PAGE_KERNEL,
L_PTE_DIRTY|L_PTE_WRITE| L_PTE_MT_MASK, L_PTE_MT_BUFFERABLE);
L_PTE_MT_BUFFERABLE);
p1 = vmap(&page, 1, VM_IOREMAP, prot); p1 = vmap(&page, 1, VM_IOREMAP, prot);
p2 = vmap(&page, 1, VM_IOREMAP, prot); p2 = vmap(&page, 1, VM_IOREMAP, prot);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment