diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2019-10-05 15:44:58 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2019-10-05 15:44:58 +0000 |
commit | 8ebcc8b46e4c55f7422462ffc1aad2062eb231df (patch) | |
tree | 72966000dc2250d0e2375d09df894aba424450a8 /sys/arch/armv7/omap | |
parent | 76fff977c457ced6e47de785fffa704747dcb6da (diff) |
Use mask to extract IPL; should have been part of the earlier diff that
added IPI support on armv7.
Diffstat (limited to 'sys/arch/armv7/omap')
-rw-r--r-- | sys/arch/armv7/omap/intc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/armv7/omap/intc.c b/sys/arch/armv7/omap/intc.c index 2b334395a42..6ac04281d12 100644 --- a/sys/arch/armv7/omap/intc.c +++ b/sys/arch/armv7/omap/intc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: intc.c,v 1.8 2019/05/06 03:45:58 mlarkin Exp $ */ +/* $OpenBSD: intc.c,v 1.9 2019/10/05 15:44:57 kettenis Exp $ */ /* * Copyright (c) 2007,2009 Dale Rahn <drahn@openbsd.org> * @@ -367,7 +367,7 @@ intc_intr_establish(int irqno, int level, int (*func)(void *), ih = malloc(sizeof(*ih), M_DEVBUF, M_WAITOK); ih->ih_func = func; ih->ih_arg = arg; - ih->ih_ipl = level; + ih->ih_ipl = level & IPL_IRQMASK; ih->ih_irq = irqno; ih->ih_name = name; |