X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/45e1f8b055043e54be35462852ab6649d634da7c..2236410f4582ab45ae8c384dd6eeeef5d10aab15:/lunaix-os/hal/ahci/io_event.c?ds=sidebyside diff --git a/lunaix-os/hal/ahci/io_event.c b/lunaix-os/hal/ahci/io_event.c index bb3142b..2ad988a 100644 --- a/lunaix-os/hal/ahci/io_event.c +++ b/lunaix-os/hal/ahci/io_event.c @@ -6,14 +6,14 @@ LOG_MODULE("io_evt") -extern struct llist_header ahcis; - void -__ahci_hba_isr(const isr_param* param) +ahci_hba_isr(const isr_param* param) { struct ahci_hba* hba; struct ahci_driver *pos, *n; - llist_for_each(pos, n, &ahcis, ahci_drvs) + struct llist_header* ahcis = (struct llist_header*)isrm_get_payload(param); + + llist_for_each(pos, n, ahcis, ahci_drvs) { if (pos->id == (int)param->execp->vector) { hba = &pos->hba;