From fd3f16229fd14f66586358ca0f3e246972428d37 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Tue, 20 Apr 1999 20:43:26 +0000 Subject: map mainbus space --- sys/arch/hppa/hppa/mainbus.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys') 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 */ -- cgit v1.2.3