if (physport) {
                void *comport;
                /* Map the uart for udbg. */
-               comport = (void *)__ioremap(physport, 16, _PAGE_NO_CACHE);
+               comport = (void *)ioremap(physport, 16);
                udbg_init_uart(comport, default_speed);
 
                ppc_md.udbg_putc = udbg_putc;
 
                find_udbg_vterm();
        else if (physport) {
                /* Map the uart for udbg. */
-               comport = (void *)__ioremap(physport, 16, _PAGE_NO_CACHE);
+               comport = (void *)ioremap(physport, 16);
                udbg_init_uart(comport, default_speed);
 
                ppc_md.udbg_putc = udbg_putc;
 
        if (range == NULL || (rlen < sizeof(struct isa_range))) {
                printk(KERN_ERR "no ISA ranges or unexpected isa range size,"
                       "mapping 64k\n");
-               __ioremap_explicit(phb_io_base_phys, (unsigned long)phb_io_base_virt, 
-                                  0x10000, _PAGE_NO_CACHE);
+               __ioremap_explicit(phb_io_base_phys,
+                                  (unsigned long)phb_io_base_virt,
+                                  0x10000, _PAGE_NO_CACHE | _PAGE_GUARDED);
                return; 
        }
        
 
                __ioremap_explicit(phb_io_base_phys, 
                                   (unsigned long) phb_io_base_virt, 
-                                  size, _PAGE_NO_CACHE);
+                                  size, _PAGE_NO_CACHE | _PAGE_GUARDED);
        }
 }
 
        struct resource *res;
 
        hose->io_base_virt = __ioremap(hose->io_base_phys, size,
-                                       _PAGE_NO_CACHE);
+                                       _PAGE_NO_CACHE | _PAGE_GUARDED);
        DBG("phb%d io_base_phys 0x%lx io_base_virt 0x%lx\n",
                hose->global_number, hose->io_base_phys,
                (unsigned long) hose->io_base_virt);
        if (get_bus_io_range(bus, &start_phys, &start_virt, &size))
                return 1;
        printk("mapping IO %lx -> %lx, size: %lx\n", start_phys, start_virt, size);
-       if (__ioremap_explicit(start_phys, start_virt, size, _PAGE_NO_CACHE))
+       if (__ioremap_explicit(start_phys, start_virt, size,
+                              _PAGE_NO_CACHE | _PAGE_GUARDED))
                return 1;
 
        return 0;
 
                ptep = pte_alloc_kernel(&ioremap_mm, pmdp, ea);
 
                pa = abs_to_phys(pa);
-               set_pte_at(&ioremap_mm, ea, ptep, pfn_pte(pa >> PAGE_SHIFT, __pgprot(flags)));
+               set_pte_at(&ioremap_mm, ea, ptep, pfn_pte(pa >> PAGE_SHIFT,
+                                                         __pgprot(flags)));
                spin_unlock(&ioremap_mm.page_table_lock);
        } else {
                unsigned long va, vpn, hash, hpteg;
 
        if ((flags & _PAGE_PRESENT) == 0)
                flags |= pgprot_val(PAGE_KERNEL);
-       if (flags & (_PAGE_NO_CACHE | _PAGE_WRITETHRU))
-               flags |= _PAGE_GUARDED;
 
-       for (i = 0; i < size; i += PAGE_SIZE) {
+       for (i = 0; i < size; i += PAGE_SIZE)
                map_io_page(ea+i, pa+i, flags);
-       }
 
        return (void __iomem *) (ea + (addr & ~PAGE_MASK));
 }
 void __iomem *
 ioremap(unsigned long addr, unsigned long size)
 {
-       return __ioremap(addr, size, _PAGE_NO_CACHE);
+       return __ioremap(addr, size, _PAGE_NO_CACHE | _PAGE_GUARDED);
 }
 
 void __iomem *
                        return 1;
                }
                if (ea != (unsigned long) area->addr) {
-                       printk(KERN_ERR "unexpected addr return from im_get_area\n");
+                       printk(KERN_ERR "unexpected addr return from "
+                              "im_get_area\n");
                        return 1;
                }
        }
                        continue;
                if (pte_present(page))
                        continue;
-               printk(KERN_CRIT "Whee.. Swapped out page in kernel page table\n");
+               printk(KERN_CRIT "Whee.. Swapped out page in kernel page"
+                      " table\n");
        } while (address < end);
 }
 
  * Access to IO memory should be serialized by driver.
  * This code is modeled after vmalloc code - unmap_vm_area()
  *
- * XXX what about calls before mem_init_done (ie python_countermeasures())     
+ * XXX what about calls before mem_init_done (ie python_countermeasures())
  */
 void iounmap(volatile void __iomem *token)
 {