From f4413c52f1d6742f5daf3a32662abbd40069983e Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Fri, 26 Oct 2012 16:26:14 +0000 Subject: Previous revision would prevent grtwo(4) boards from being recognized. Make sure that what seems to be a 8-bit ID register of value zero does not match as an expansion board, which it can't be, and continue with the specific frame buffer test logic. --- sys/arch/sgi/gio/gio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch') diff --git a/sys/arch/sgi/gio/gio.c b/sys/arch/sgi/gio/gio.c index 3a4a24fb257..47623c092d1 100644 --- a/sys/arch/sgi/gio/gio.c +++ b/sys/arch/sgi/gio/gio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gio.c,v 1.13 2012/07/18 20:56:46 miod Exp $ */ +/* $OpenBSD: gio.c,v 1.14 2012/10/26 16:26:13 miod Exp $ */ /* $NetBSD: gio.c,v 1.32 2011/07/01 18:53:46 dyoung Exp $ */ /* @@ -389,7 +389,7 @@ gio_id(vaddr_t va, paddr_t pa, int maybe_gfx) */ if ((id32 & 0xffff) == id16 && (id32 & 0xff) == id8 && - !GIO_PRODUCT_32BIT_ID(id8)) + !GIO_PRODUCT_32BIT_ID(id8) && id8 != 0x00) return /*GIO_PRODUCT_PRODUCTID*/(id8); /* -- cgit v1.2.3