-/* $OpenBSD: acpi.c,v 1.401 2021/11/02 02:17:56 deraadt Exp $ */
+/* $OpenBSD: acpi.c,v 1.402 2021/12/07 10:15:25 kettenis Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
case SR_IRQ:
aaa->aaa_irq[aaa->aaa_nirq] = ffs(crs->sr_irq.irq_mask) - 1;
/* Default is exclusive, active-high, edge triggered. */
- if (AML_CRSLEN(crs) < 3)
+ if (AML_CRSLEN(crs) < 4)
flags = SR_IRQ_MODE;
else
flags = crs->sr_irq.irq_flags;