fault-armv.c (41be702a542a0d14bb0b1c16e824fa9ed27616ec) | fault-armv.c (4ed89f2228061422ce5f62545fd0b6f6648bd2cc) |
---|---|
1/* 2 * linux/arch/arm/mm/fault-armv.c 3 * 4 * Copyright (C) 1995 Linus Torvalds 5 * Modifications for ARM processor (c) 1995-2002 Russell King 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as --- 221 unchanged lines hidden (view full) --- 230} 231 232void __init check_writebuffer_bugs(void) 233{ 234 struct page *page; 235 const char *reason; 236 unsigned long v = 1; 237 | 1/* 2 * linux/arch/arm/mm/fault-armv.c 3 * 4 * Copyright (C) 1995 Linus Torvalds 5 * Modifications for ARM processor (c) 1995-2002 Russell King 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as --- 221 unchanged lines hidden (view full) --- 230} 231 232void __init check_writebuffer_bugs(void) 233{ 234 struct page *page; 235 const char *reason; 236 unsigned long v = 1; 237 |
238 printk(KERN_INFO "CPU: Testing write buffer coherency: "); | 238 pr_info("CPU: Testing write buffer coherency: "); |
239 240 page = alloc_page(GFP_KERNEL); 241 if (page) { 242 unsigned long *p1, *p2; 243 pgprot_t prot = __pgprot_modify(PAGE_KERNEL, 244 L_PTE_MT_MASK, L_PTE_MT_BUFFERABLE); 245 246 p1 = vmap(&page, 1, VM_IOREMAP, prot); --- 9 unchanged lines hidden (view full) --- 256 vunmap(p1); 257 vunmap(p2); 258 put_page(page); 259 } else { 260 reason = "unable to grab page\n"; 261 } 262 263 if (v) { | 239 240 page = alloc_page(GFP_KERNEL); 241 if (page) { 242 unsigned long *p1, *p2; 243 pgprot_t prot = __pgprot_modify(PAGE_KERNEL, 244 L_PTE_MT_MASK, L_PTE_MT_BUFFERABLE); 245 246 p1 = vmap(&page, 1, VM_IOREMAP, prot); --- 9 unchanged lines hidden (view full) --- 256 vunmap(p1); 257 vunmap(p2); 258 put_page(page); 259 } else { 260 reason = "unable to grab page\n"; 261 } 262 263 if (v) { |
264 printk("failed, %s\n", reason); | 264 pr_cont("failed, %s\n", reason); |
265 shared_pte_mask = L_PTE_MT_UNCACHED; 266 } else { | 265 shared_pte_mask = L_PTE_MT_UNCACHED; 266 } else { |
267 printk("ok\n"); | 267 pr_cont("ok\n"); |
268 } 269} | 268 } 269} |