git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Decoupling Architectural-specific Code (#35)
[lunaix-os.git]
/
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 aec209e56a289c720c9786dfc05949c473c6c204..4e77f98ab25674cc7321e77c15477eb0bd6f34f8 100644
(file)
--- a/
lunaix-os/hal/ahci/io_event.c
+++ b/
lunaix-os/hal/ahci/io_event.c
@@
-1,21
+1,21
@@
#include <hal/ahci/ahci.h>
#include <hal/ahci/sata.h>
#include <hal/ahci/ahci.h>
#include <hal/ahci/sata.h>
-#include <lunaix/isrm.h>
+#include <lunaix/
generic/
isrm.h>
#include <lunaix/mm/valloc.h>
#include <lunaix/syslog.h>
LOG_MODULE("io_evt")
void
#include <lunaix/mm/valloc.h>
#include <lunaix/syslog.h>
LOG_MODULE("io_evt")
void
-ahci_hba_isr(const
isr_param* param
)
+ahci_hba_isr(const
struct hart_state* hstate
)
{
struct ahci_hba* hba;
struct ahci_driver *pos, *n;
{
struct ahci_hba* hba;
struct ahci_driver *pos, *n;
- struct llist_header* ahcis = (struct llist_header*)isrm_get_payload(
param
);
+ struct llist_header* ahcis = (struct llist_header*)isrm_get_payload(
hstate
);
llist_for_each(pos, n, ahcis, ahci_drvs)
{
llist_for_each(pos, n, ahcis, ahci_drvs)
{
- if (pos->id ==
(int)param->execp->vector
) {
+ if (pos->id ==
hart_vector_stamp(hstate)
) {
hba = &pos->hba;
goto proceed;
}
hba = &pos->hba;
goto proceed;
}