diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2010-09-01 19:14:26 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2010-09-01 19:14:26 +0000 |
commit | 1c6ddd0dfc386e97f432a221fc55097c603c2569 (patch) | |
tree | 43b8b8fa3e7e722333204b23500f3d42cfdbda08 /sys/arch | |
parent | 8b11755e8532f503af1ed099def7aa996e05e519 (diff) |
Fix typo in vgafb_mmap(), causing a comparison to always fail. ok kettenis@
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/macppc/pci/vgafb.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/macppc/pci/vgafb.c b/sys/arch/macppc/pci/vgafb.c index 3e69b85827e..796e5bb5f70 100644 --- a/sys/arch/macppc/pci/vgafb.c +++ b/sys/arch/macppc/pci/vgafb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vgafb.c,v 1.36 2009/03/29 21:53:52 sthen Exp $ */ +/* $OpenBSD: vgafb.c,v 1.37 2010/09/01 19:14:25 miod Exp $ */ /* $NetBSD: vga.c,v 1.3 1996/12/02 22:24:54 cgd Exp $ */ /* @@ -361,7 +361,7 @@ vgafb_mmap(void *v, off_t offset, int prot) else if (offset >= 0x10040000 && offset < 0x10080000) /* 256KB of iohc */ h = vc->vc_ioh_c; - else if (offset >= 0x18880000 && offset < 0x100c0000) + else if (offset >= 0x10080000 && offset < 0x100c0000) /* 256KB of iohd */ h = vc->vc_ioh_d; else if (offset >= 0x20000000 && offset < 0x20000000+vc->mmiosize) @@ -374,7 +374,6 @@ vgafb_mmap(void *v, off_t offset, int prot) (offset < vc->mmiobase+vc->mmiosize)) { /* allow mmapping of mmio space */ h = offset; - } else { h = -1; } |