Turn on PG_N (nocache) when mapping ioapic
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Wed, 8 Jul 2009 02:32:41 +0000 (10:32 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 11 Jul 2009 02:27:12 +0000 (10:27 +0800)
Noticed-by: Jordan Gordeev <jgordeev@dir.bg>
sys/platform/pc32/i386/mp_machdep.c

index eba146f..c98f778 100644 (file)
@@ -2165,7 +2165,7 @@ permanent_io_mapping(vm_paddr_t pa)
                        panic("permanent_io_mapping: We ran out of space"
                              " in SMPpt[]!");
                }
                        panic("permanent_io_mapping: We ran out of space"
                              " in SMPpt[]!");
                }
-               SMPpt[i] = (pt_entry_t)(PG_V | PG_RW | pgeflag |
+               SMPpt[i] = (pt_entry_t)(PG_V | PG_RW | PG_N | pgeflag |
                           ((vm_offset_t)pa & PG_FRAME));
                ++SMPpt_alloc_index;
        }
                           ((vm_offset_t)pa & PG_FRAME));
                ++SMPpt_alloc_index;
        }