When establishing interrupt set CPU_UPAID in mapping register

so that interrupt would be delivered.
This commit is contained in:
petrov 2003-10-11 20:53:14 +00:00
parent 5d0bf491b0
commit 2514d9e4f2
2 changed files with 6 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: iommureg.h,v 1.10 2003/08/07 16:29:47 agc Exp $ */
/* $NetBSD: iommureg.h,v 1.11 2003/10/11 20:53:14 petrov Exp $ */
/*
* Copyright (c) 1992, 1993
@ -136,6 +136,7 @@ struct iommu_strbuf {
#define INTMAP_V 0x080000000LL /* Interrupt valid (enabled) */
#define INTMAP_TID 0x07c000000LL /* UPA target ID mask */
#define INTMAP_TID_SHIFT 26
#define INTMAP_IGN 0x0000007c0LL /* Interrupt group no (sbus only). */
#define INTMAP_INO 0x00000003fLL /* Interrupt number */
#define INTMAP_INR (INTMAP_IGN|INTMAP_INO)

View File

@ -1,4 +1,4 @@
/* $NetBSD: sbus.c,v 1.62 2003/08/27 15:59:55 mrg Exp $ */
/* $NetBSD: sbus.c,v 1.63 2003/10/11 20:53:14 petrov Exp $ */
/*
* Copyright (c) 1999-2002 Eduardo Horvath
@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: sbus.c,v 1.62 2003/08/27 15:59:55 mrg Exp $");
__KERNEL_RCSID(0, "$NetBSD: sbus.c,v 1.63 2003/10/11 20:53:14 petrov Exp $");
#include "opt_ddb.h"
@ -654,10 +654,8 @@ sbus_intr_establish(t, pri, level, handler, arg, fastvec)
}
#endif
/* Enable the interrupt */
vec |= INTMAP_V;
/* Insert IGN */
vec |= sc->sc_ign;
/* XXXX */
vec |= INTMAP_V | sc->sc_ign |
(CPU_UPAID << INTMAP_TID_SHIFT);
*(ih->ih_map) = vec;
} else {
int64_t *intrptr = &sc->sc_sysio->scsi_int_map;