diff options
author | Jonathan Matthew <jmatthew@cvs.openbsd.org> | 2023-09-12 08:29:29 +0000 |
---|---|---|
committer | Jonathan Matthew <jmatthew@cvs.openbsd.org> | 2023-09-12 08:29:29 +0000 |
commit | c591c3423b368e62af9c9a6b2e4b433e5a31e377 (patch) | |
tree | d091fe87adf43ab8eff46e1c68d46065711435c0 /sys/arch/arm64/dev | |
parent | 375f588b046f7161b1be4ceaa95711043ca92c5b (diff) |
Store ITS ID in struct interrupt_controller so it can be used to look up
the right ITS to use when establishing interrupts.
ok kettenis@ patrick@
Diffstat (limited to 'sys/arch/arm64/dev')
-rw-r--r-- | sys/arch/arm64/dev/agintc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/arm64/dev/agintc.c b/sys/arch/arm64/dev/agintc.c index 7f4a31aae45..81fa97f70b2 100644 --- a/sys/arch/arm64/dev/agintc.c +++ b/sys/arch/arm64/dev/agintc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: agintc.c,v 1.52 2023/07/07 10:11:39 patrick Exp $ */ +/* $OpenBSD: agintc.c,v 1.53 2023/09/12 08:29:28 jmatthew Exp $ */ /* * Copyright (c) 2007, 2009, 2011, 2017 Dale Rahn <drahn@dalerahn.com> * Copyright (c) 2018 Mark Kettenis <kettenis@openbsd.org> @@ -1797,6 +1797,8 @@ agintc_msi_attach(struct device *parent, struct device *self, void *aux) sc->sc_ic.ic_establish_msi = agintc_intr_establish_msi; sc->sc_ic.ic_disestablish = agintc_intr_disestablish_msi; sc->sc_ic.ic_barrier = agintc_intr_barrier_msi; + sc->sc_ic.ic_gic_its_id = OF_getpropint(faa->fa_node, + "openbsd,gic-its-id", 0); arm_intr_register_fdt(&sc->sc_ic); return; |