Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Commit

Permalink
subr_intr: don't panic on double activation [HACK]
Browse files Browse the repository at this point in the history
Required for if_ena on aarch64
  • Loading branch information
valpackett committed Mar 10, 2019
1 parent ea34b87 commit a7e7c6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sys/kern/subr_intr.c
Expand Up @@ -949,8 +949,9 @@ intr_activate_irq(device_t dev, struct resource *res)

res_id = (u_int)rman_get_start(res);
if (intr_map_get_isrc(res_id) != NULL)
panic("Attempt to double activation of resource id: %u\n",
printf("Attempt to double activation of resource id: %u\n",
res_id);
else printf("intr_activate_irq: first activation of id: %u\n", res_id);
intr_map_copy_map_data(res_id, &map_dev, &map_xref, &data);
error = intr_resolve_irq(map_dev, map_xref, data, &isrc);
if (error != 0) {
Expand Down

0 comments on commit a7e7c6e

Please sign in to comment.