summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorMichael Knudsen <mk@cvs.openbsd.org>2007-07-20 17:04:15 +0000
committerMichael Knudsen <mk@cvs.openbsd.org>2007-07-20 17:04:15 +0000
commitfcbdfa9a2f46314d45294fb67d5541e1b41fa0d5 (patch)
tree5aa1a27342d03e1338ac97e6164feca7e566b66e /sys/arch/i386
parente2b28272f3b02d2885a9e816dc3ea74d5e49e010 (diff)
Oh, look, code that begins like this:
if (cpu_class != CPUCLASS_386) { Since we don't support 386 now, unconditionally execute the block. ok tom toby
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/i386/machdep.c21
1 files changed, 7 insertions, 14 deletions
diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c
index a941f9ededd..4b5678ab52f 100644
--- a/sys/arch/i386/i386/machdep.c
+++ b/sys/arch/i386/i386/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.402 2007/06/07 11:20:58 dim Exp $ */
+/* $OpenBSD: machdep.c,v 1.403 2007/07/20 17:04:14 mk Exp $ */
/* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */
/*-
@@ -3524,19 +3524,12 @@ bus_mem_add_mapping(bus_addr_t bpa, bus_size_t size, int cacheable,
pa += PAGE_SIZE, va += PAGE_SIZE, map_size -= PAGE_SIZE) {
pmap_kenter_pa(va, pa, VM_PROT_READ | VM_PROT_WRITE);
- /*
- * PG_N doesn't exist on 386's, so we assume that
- * the mainboard has wired up device space non-cacheable
- * on those machines.
- */
- if (cpu_class != CPUCLASS_386) {
- pte = kvtopte(va);
- if (cacheable)
- *pte &= ~PG_N;
- else
- *pte |= PG_N;
- pmap_tlb_shootpage(pmap_kernel(), va);
- }
+ pte = kvtopte(va);
+ if (cacheable)
+ *pte &= ~PG_N;
+ else
+ *pte |= PG_N;
+ pmap_tlb_shootpage(pmap_kernel(), va);
}
pmap_tlb_shootwait();