X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/98fd6cb58b5bbc55cd9ceb45bd27b45a3b222df7..8efc0cf32160c68772a2ce1887e6a397852d3d96:/lunaix-os/hal/ahci/io_event.c diff --git a/lunaix-os/hal/ahci/io_event.c b/lunaix-os/hal/ahci/io_event.c index c1bd6a5..2ce49ef 100644 --- a/lunaix-os/hal/ahci/io_event.c +++ b/lunaix-os/hal/ahci/io_event.c @@ -6,16 +6,16 @@ LOG_MODULE("io_evt") -extern struct llist_header ahcis; - void __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 == param->execp->vector) { + if (pos->id == (int)param->execp->vector) { hba = &pos->hba; goto proceed; }