diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2019-06-03 08:48:11 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2019-06-03 08:48:11 +0000 |
commit | 95b5f5bcfd7293729b82425454390ef4a1d639b1 (patch) | |
tree | 0ef924e3dd88b11144e8420dfd303be4b809fbf5 | |
parent | c441ee4882c0d2e8ade767f4afa72367b039512d (diff) |
Fix priorities of LIPs to match the other changes made in rev 1.17.
Makes MSI/MSI-X actually work reliably on machines with agintc(4).
ok patrick@
-rw-r--r-- | sys/arch/arm64/dev/agintc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/arm64/dev/agintc.c b/sys/arch/arm64/dev/agintc.c index eab51cc8337..9dce33bdf32 100644 --- a/sys/arch/arm64/dev/agintc.c +++ b/sys/arch/arm64/dev/agintc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: agintc.c,v 1.18 2019/05/13 20:55:22 drahn Exp $ */ +/* $OpenBSD: agintc.c,v 1.19 2019/06/03 08:48:10 kettenis Exp $ */ /* * Copyright (c) 2007, 2009, 2011, 2017 Dale Rahn <drahn@dalerahn.com> * Copyright (c) 2018 Mark Kettenis <kettenis@openbsd.org> @@ -1021,7 +1021,7 @@ agintc_intr_establish(int irqno, int level, int (*func)(void *), } else { uint8_t *prop = AGINTC_DMA_KVA(sc->sc_prop); - prop[irqno - LPI_BASE] = ((NIPL - ih->ih_ipl) << 4) | + prop[irqno - LPI_BASE] = (((0xff - ih->ih_ipl) << 4) & 0xff) | GICR_PROP_GROUP1 | GICR_PROP_ENABLE; /* Make globally visible. */ |