From d4e304549399983fb953dd5f07070073ba867997 Mon Sep 17 00:00:00 2001 From: Jason Wright Date: Tue, 3 Dec 2002 19:25:55 +0000 Subject: Use bus_space_vaddr() instead of checking the mapping directly (this will be necessary soon); from henric@ --- sys/arch/sparc64/dev/creator_mainbus.c | 6 +++--- sys/arch/sparc64/dev/creator_upa.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'sys/arch/sparc64/dev') diff --git a/sys/arch/sparc64/dev/creator_mainbus.c b/sys/arch/sparc64/dev/creator_mainbus.c index 1b1bbaf17b4..9f0089b405b 100644 --- a/sys/arch/sparc64/dev/creator_mainbus.c +++ b/sys/arch/sparc64/dev/creator_mainbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: creator_mainbus.c,v 1.4 2002/07/26 16:39:04 jason Exp $ */ +/* $OpenBSD: creator_mainbus.c,v 1.5 2002/12/03 19:25:54 jason Exp $ */ /* * Copyright (c) 2002 Jason L. Wright (jason@thought.net), @@ -122,10 +122,10 @@ creator_mainbus_attach(parent, self, aux) return; fail: - if (sc->sc_fbc_h != 0) + if (bus_space_vaddr(sc->sc_bt, sc->sc_fbc_h)) bus_space_unmap(sc->sc_bt, sc->sc_fbc_h, ma->ma_reg[FFB_REG_FBC].ur_len); - if (sc->sc_pixel_h != 0) + if (bus_space_vaddr(sc->sc_bt, sc->sc_pixel_h)) bus_space_unmap(sc->sc_bt, sc->sc_pixel_h, ma->ma_reg[FFB_REG_DFB24].ur_len); } diff --git a/sys/arch/sparc64/dev/creator_upa.c b/sys/arch/sparc64/dev/creator_upa.c index c9e9469bc40..2107b7aeee8 100644 --- a/sys/arch/sparc64/dev/creator_upa.c +++ b/sys/arch/sparc64/dev/creator_upa.c @@ -1,4 +1,4 @@ -/* $OpenBSD: creator_upa.c,v 1.3 2002/07/26 16:39:04 jason Exp $ */ +/* $OpenBSD: creator_upa.c,v 1.4 2002/12/03 19:25:54 jason Exp $ */ /* * Copyright (c) 2002 Jason L. Wright (jason@thought.net) @@ -121,10 +121,10 @@ creator_upa_attach(parent, self, aux) return; fail: - if (sc->sc_fbc_h != 0) + if (bus_space_vaddr(sc->sc_bt, sc->sc_fbc_h)) bus_space_unmap(sc->sc_bt, sc->sc_fbc_h, ma->ma_reg[FFB_REG_FBC].ur_len); - if (sc->sc_pixel_h != 0) + if (bus_space_vaddr(sc->sc_bt, sc->sc_pixel_h)) bus_space_unmap(sc->sc_bt, sc->sc_pixel_h, ma->ma_reg[FFB_REG_DFB24].ur_len); } -- cgit v1.2.3