diff options
author | 2018-04-09 18:35:13 +0000 | |
---|---|---|
committer | 2018-04-09 18:35:13 +0000 | |
commit | 3dd5c381ec07d6eb9dd8575c0a73780b538733dc (patch) | |
tree | 3ebf135dac3779e7c343d045854c46fa3595c187 /sys/dev/fdt/dwpcie.c | |
parent | Support 64 bit integers on 32 bit architectures. (diff) | |
download | wireguard-openbsd-3dd5c381ec07d6eb9dd8575c0a73780b538733dc.tar.xz wireguard-openbsd-3dd5c381ec07d6eb9dd8575c0a73780b538733dc.zip |
The Open Firmware Interrupt Mapping "recommendation" says that the number
of address celss in the child unit specifier should be fetched from the
interrupt controller node. Fix this as the current code doesn't work on
the MACCHIATObin for example.
ok patrick@
Diffstat (limited to 'sys/dev/fdt/dwpcie.c')
-rw-r--r-- | sys/dev/fdt/dwpcie.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/fdt/dwpcie.c b/sys/dev/fdt/dwpcie.c index a19ef86f149..f0cb1e80774 100644 --- a/sys/dev/fdt/dwpcie.c +++ b/sys/dev/fdt/dwpcie.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dwpcie.c,v 1.3 2018/04/05 21:41:49 kettenis Exp $ */ +/* $OpenBSD: dwpcie.c,v 1.4 2018/04/09 18:35:13 kettenis Exp $ */ /* * Copyright (c) 2018 Mark Kettenis <kettenis@openbsd.org> * @@ -580,8 +580,7 @@ dwpcie_intr_establish(void *v, pci_intr_handle_t ihp, int level, reg[3] = ih->ih_intrpin; cookie = arm_intr_establish_fdt_imap(sc->sc_node, reg, - sizeof(reg), sc->sc_pacells, level, func, arg, - (void *)name); + sizeof(reg), level, func, arg, name); } free(ih, M_DEVBUF, sizeof(struct dwpcie_intr_handle)); |