diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2007-11-09 17:46:04 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2007-11-09 17:46:04 +0000 |
commit | 89e6d77f7431193536f6e8be4383159bd21cb002 (patch) | |
tree | 54259a8a970d27a4f5506b4974c70ffa780295ae /sys/arch/hp300/dev | |
parent | 5b7265cc919c67ef59625027826fb5ed597a57d4 (diff) |
IPL_xxx values on hp300 are logical values (although some of them happen to
match the real hardware level used for them).
So instead of keeping a few loose variables to store the runtime computed
psr bits to use for the logical IPL levels, just keep a complete array of
all psr values. Thus we can have a correct splassert_check().
Diffstat (limited to 'sys/arch/hp300/dev')
-rw-r--r-- | sys/arch/hp300/dev/dma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/hp300/dev/dma.c b/sys/arch/hp300/dev/dma.c index ec2bca48bd5..4a3ff45eb9e 100644 --- a/sys/arch/hp300/dev/dma.c +++ b/sys/arch/hp300/dev/dma.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dma.c,v 1.17 2005/11/17 23:56:02 miod Exp $ */ +/* $OpenBSD: dma.c,v 1.18 2007/11/09 17:46:00 miod Exp $ */ /* $NetBSD: dma.c,v 1.19 1997/05/05 21:02:39 thorpej Exp $ */ /* @@ -209,7 +209,7 @@ dmacomputeipl() * Our interrupt level must be as high as the highest * device using DMA (i.e. splbio). */ - sc->sc_isr.isr_ipl = PSLTOIPL(hp300_bioipl); + sc->sc_isr.isr_ipl = PSLTOIPL(hp300_varpsl[IPL_BIO]); sc->sc_isr.isr_func = dmaintr; intr_establish(&sc->sc_isr, "dma"); |