From a7edfa855cc5ab4fdc868e5fc7e19f8b9409639f Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Sun, 3 Feb 2002 01:47:55 +0000 Subject: better space map --- sys/arch/hppa/gsc/com_gsc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/arch') diff --git a/sys/arch/hppa/gsc/com_gsc.c b/sys/arch/hppa/gsc/com_gsc.c index 61e5e29e6b7..ea7a3363a26 100644 --- a/sys/arch/hppa/gsc/com_gsc.c +++ b/sys/arch/hppa/gsc/com_gsc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: com_gsc.c,v 1.9 2002/01/25 21:46:40 mickey Exp $ */ +/* $OpenBSD: com_gsc.c,v 1.10 2002/02/03 01:47:54 mickey Exp $ */ /* * Copyright (c) 1998-2002 Michael Shalayeff @@ -85,8 +85,8 @@ com_gsc_attach(parent, self, aux) sc->sc_iot = ga->ga_iot; if (sc->sc_iobase == CONADDR) sc->sc_ioh = comconsioh; - else if (bus_space_map(sc->sc_iot, ga->ga_hpa + IOMOD_DEVOFFSET, - COM_NPORTS, 0, &sc->sc_ioh)) { + else if (bus_space_map(sc->sc_iot, sc->sc_iobase, COM_NPORTS, + 0, &sc->sc_ioh)) { printf(": cannot map io space\n"); return; } -- cgit v1.2.3