Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/vax/bi Implement bi_intr_establish(). Add some fiel...
details: https://anonhg.NetBSD.org/src/rev/da3a35c37c26
branches: trunk
changeset: 484132:da3a35c37c26
user: ragge <ragge%NetBSD.org@localhost>
date: Sun Mar 26 11:41:25 2000 +0000
description:
Implement bi_intr_establish(). Add some fields about which CPU to interrupt.
diffstat:
sys/arch/vax/bi/bi_mainbus.c | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diffs (35 lines):
diff -r 40edae557f95 -r da3a35c37c26 sys/arch/vax/bi/bi_mainbus.c
--- a/sys/arch/vax/bi/bi_mainbus.c Sun Mar 26 11:40:31 2000 +0000
+++ b/sys/arch/vax/bi/bi_mainbus.c Sun Mar 26 11:41:25 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bi_mainbus.c,v 1.1 1999/08/07 10:36:43 ragge Exp $ */
+/* $NetBSD: bi_mainbus.c,v 1.2 2000/03/26 11:41:25 ragge Exp $ */
/*
* Copyright (c) 1999 Ludd, University of Lule}, Sweden.
* All rights reserved.
@@ -37,6 +37,8 @@
#include <machine/bus.h>
#include <machine/nexus.h>
#include <machine/sid.h>
+#include <machine/scb.h>
+#include <machine/cpu.h>
#include <dev/bi/bivar.h>
@@ -71,8 +73,16 @@
/*
* Fill in bus specific data.
*/
+ sc->sc_addr = (bus_addr_t)0x20000000; /* XXX */
sc->sc_iot = &vax_mem_bus_space; /* No special I/O handling */
sc->sc_dmat = &vax_bus_dma_tag; /* No special DMA handling either */
+ sc->sc_intcpu = 1 << mastercpu;
bi_attach(sc);
}
+
+void
+bi_intr_establish(void *icookie, int vec, void (*func)(void *), void *arg)
+{
+ scb_vecalloc(vec, func, arg, SCB_ISTACK);
+}
Home |
Main Index |
Thread Index |
Old Index