summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r--sys/arch/sparc64/dev/vgafb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc64/dev/vgafb.c b/sys/arch/sparc64/dev/vgafb.c
index 6978da34132..2c2f5b49664 100644
--- a/sys/arch/sparc64/dev/vgafb.c
+++ b/sys/arch/sparc64/dev/vgafb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vgafb.c,v 1.56 2008/12/29 22:07:35 miod Exp $ */
+/* $OpenBSD: vgafb.c,v 1.57 2009/03/01 10:48:54 kettenis Exp $ */
/*
* Copyright (c) 2001 Jason L. Wright (jason@thought.net)
@@ -438,7 +438,7 @@ vgafb_mapregs(sc, pa)
* or mmio, we guess that memory is
* the larger of the two.
*/
- if (sc->sc_mem_size > bs) {
+ if (sc->sc_mem_size >= bs) {
/* this is the mmio */
sc->sc_mmio_addr = ba;
/* ATI driver maps 0x80000 mmio, grr */