summaryrefslogtreecommitdiffstats
path: root/lib/libssl/ssl_lib.c
diff options
context:
space:
mode:
authorpatrick <patrick@openbsd.org>2020-07-14 15:52:20 +0000
committerpatrick <patrick@openbsd.org>2020-07-14 15:52:20 +0000
commitde70244ea9b3c6b45be609dcf626ff985b6cfecc (patch)
treef33d23e6506aad1f9a9aa2ef17067f3bb13fa731 /lib/libssl/ssl_lib.c
parentImplement pci_intr_establish_cpu() on arm64 and armv7. The function pointer (diff)
downloadwireguard-openbsd-de70244ea9b3c6b45be609dcf626ff985b6cfecc.tar.xz
wireguard-openbsd-de70244ea9b3c6b45be609dcf626ff985b6cfecc.zip
Add support for routing interrupts to other CPUs in ampintc(4). Most of the
supporting code was already there. The driver supports establishing multiple handlers on the same pin. Make sure that a single pin can only be established on a specific core by recording the struct cpu_info * of the first establish, and returning NULL if someone tries to share the pin with a different core. Since the array of CPU masks, used for enabling/disabling interrupt routing to specific cores, is only populated during cpu_boot_secondary_processors(), each core will re-route the interrupts once a core read its mask. Until then, the core will not receive interrupts for that pin. While there, remove a call to ampintc_setipl(), which seems to be a no-op. It tries to set the same value that's already set. Since the function that calls it is supposed to calculate a pin's mask and do the routing, this doesn't seem to be the correct place for such a call. agintc(4) doesn't have it either. Prompted by dlg@ ok kettenis@
Diffstat (limited to 'lib/libssl/ssl_lib.c')
0 files changed, 0 insertions, 0 deletions