diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1999-04-20 20:43:26 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1999-04-20 20:43:26 +0000 |
commit | fd3f16229fd14f66586358ca0f3e246972428d37 (patch) | |
tree | 4c095e904f8e0728a9086caa55057c4d67430105 /sys/arch/hppa | |
parent | 1c1cbc469e7d7164b4f34093f353b3d1e36f5d6b (diff) |
map mainbus space
Diffstat (limited to 'sys/arch/hppa')
-rw-r--r-- | sys/arch/hppa/hppa/mainbus.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/hppa/hppa/mainbus.c b/sys/arch/hppa/hppa/mainbus.c index e1be999e303..6cc416084a6 100644 --- a/sys/arch/hppa/hppa/mainbus.c +++ b/sys/arch/hppa/hppa/mainbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mainbus.c,v 1.3 1999/02/25 19:16:02 mickey Exp $ */ +/* $OpenBSD: mainbus.c,v 1.4 1999/04/20 20:43:25 mickey Exp $ */ /* * Copyright (c) 1998 Michael Shalayeff @@ -98,11 +98,15 @@ mbattach(parent, self, aux) register struct mainbus_softc *sc = (struct mainbus_softc *)self; struct pdc_hpa pdc_hpa PDC_ALIGNMENT; struct confargs nca; + bus_space_handle_t ioh; /* fetch the "default" cpu hpa */ if (pdc_call((iodcio_t)pdc, 0, PDC_HPA, PDC_HPA_DFLT, &pdc_hpa) < 0) panic("mbattach: PDC_HPA failed"); + if (bus_space_map(0, pdc_hpa.hpa, IOMOD_HPASIZE, 0, &ioh)) + panic("mbattach: cannot map mainbus IO space"); + /* * Local-Broadcast the HPA to all modules on the bus */ |