summaryrefslogtreecommitdiff
path: root/sys/arch/armv7/omap
diff options
context:
space:
mode:
authorPatrick Wildt <patrick@cvs.openbsd.org>2023-03-05 14:45:08 +0000
committerPatrick Wildt <patrick@cvs.openbsd.org>2023-03-05 14:45:08 +0000
commit5f76d51b68f8299f3df44838d74170e18547f663 (patch)
treeeb9c91d1f4fb67d980c799cfc2080de4cd6c40f3 /sys/arch/armv7/omap
parent2e955ba5f359988cfa707b7f8c58f7bc3ab569dd (diff)
Mask off IPL flags before storing the IPL for an interrupt.
ok kettenis@ jmatthew@
Diffstat (limited to 'sys/arch/armv7/omap')
-rw-r--r--sys/arch/armv7/omap/omgpio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/armv7/omap/omgpio.c b/sys/arch/armv7/omap/omgpio.c
index 7a3e3bc37d6..5c94f3962fb 100644
--- a/sys/arch/armv7/omap/omgpio.c
+++ b/sys/arch/armv7/omap/omgpio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: omgpio.c,v 1.14 2021/10/24 17:52:27 mpi Exp $ */
+/* $OpenBSD: omgpio.c,v 1.15 2023/03/05 14:45:07 patrick Exp $ */
/*
* Copyright (c) 2007,2009 Dale Rahn <drahn@openbsd.org>
*
@@ -671,7 +671,7 @@ omgpio_intr_establish(struct omgpio_softc *sc, unsigned int gpio, int level, int
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_gpio = gpio;
ih->ih_irq = gpio + 512;
ih->ih_name = name;