diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-02-03 01:47:55 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-02-03 01:47:55 +0000 |
commit | a7edfa855cc5ab4fdc868e5fc7e19f8b9409639f (patch) | |
tree | 2e360626403825fb3732429ad26b121f11692d48 /sys/arch/hppa/gsc/com_gsc.c | |
parent | a8946d5c87579c892a280260ffc5e84124cbc113 (diff) |
better space map
Diffstat (limited to 'sys/arch/hppa/gsc/com_gsc.c')
-rw-r--r-- | sys/arch/hppa/gsc/com_gsc.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |