From 74a540b82160f3bccc98bc6e562fbe6f1e6403a6 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Thu, 23 Sep 2004 18:55:46 +0000 Subject: Correctly test for prom memory mapping failure. Fortunately no system we know of provides prom memory mappings for com(4)... --- sys/arch/sparc64/dev/com_ebus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/sparc64/dev') diff --git a/sys/arch/sparc64/dev/com_ebus.c b/sys/arch/sparc64/dev/com_ebus.c index 94af5918362..cc3dacc86d7 100644 --- a/sys/arch/sparc64/dev/com_ebus.c +++ b/sys/arch/sparc64/dev/com_ebus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: com_ebus.c,v 1.9 2003/06/24 21:54:39 henric Exp $ */ +/* $OpenBSD: com_ebus.c,v 1.10 2004/09/23 18:55:45 miod Exp $ */ /* $NetBSD: com_ebus.c,v 1.6 2001/07/24 19:27:10 eeh Exp $ */ /* @@ -120,7 +120,7 @@ com_ebus_attach(parent, self, aux) */ if (ea->ea_nvaddrs) { if (bus_space_map(ea->ea_memtag, ea->ea_vaddrs[0], 0, - BUS_SPACE_MAP_PROMADDRESS, &sc->sc_ioh) == 0) { + BUS_SPACE_MAP_PROMADDRESS, &sc->sc_ioh) != 0) { printf(": can't map register space\n"); return; } -- cgit v1.2.3