diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2004-09-23 18:55:46 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2004-09-23 18:55:46 +0000 |
commit | 74a540b82160f3bccc98bc6e562fbe6f1e6403a6 (patch) | |
tree | 914427ae42e80e18cee27858eb0ec1fbe5896da2 /sys | |
parent | c370a65a80b4df1290b38bea17f3100f0977e496 (diff) |
Correctly test for prom memory mapping failure. Fortunately no system we
know of provides prom memory mappings for com(4)...
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/sparc64/dev/com_ebus.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |