X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/34f6af4f61e0eec9c96113e07f140b609b4113c8..99f2ed669601a61f4f0210e0b481ff877cd9bea7:/lunaix-os/arch/x86/exceptions/isrm.c?ds=sidebyside diff --git a/lunaix-os/arch/x86/exceptions/isrm.c b/lunaix-os/arch/x86/exceptions/isrm.c index dea130c..a3c223d 100644 --- a/lunaix-os/arch/x86/exceptions/isrm.c +++ b/lunaix-os/arch/x86/exceptions/isrm.c @@ -1,6 +1,6 @@ #include #include -#include +#include #include "asm/x86.h" #include "asm/soc/ioapic.h" @@ -165,6 +165,24 @@ isrm_notify_eos(cpu_t id) isrm_notify_eoi(id, LUNAIX_SCHED); } +msi_vector_t +isrm_msialloc(isr_cb handler) +{ + unsigned int iv = isrm_ivexalloc(handler); + + return (msi_vector_t){ + .msi_addr = 0xfee00000, + .msi_data = iv, + .mapped_iv = iv + }; +} + +int +isrm_bind_dtnode(struct dt_intr_node* node) +{ + fail("not supported"); +} + static void __intc_init()