adjust exec_param to keep track of sp_el0, fix incorrect use sys regs
[lunaix-os.git] / lunaix-os / arch / x86 / exceptions / isrm.c
index 89ff616bd0f9b9d0ef4a7b0698f6483329f46ecb..dea130ccd546db6a13e54a9c19b5914c262ae536 100644 (file)
@@ -1,10 +1,10 @@
-#include <lunaix/generic/isrm.h>
 #include <lunaix/spike.h>
 #include <lunaix/owloysius.h>
+#include <asm-generic/isrm.h>
 
-#include "sys/x86_isa.h"
-#include "sys/ioapic.h"
-#include "sys/apic.h"
+#include "asm/x86.h"
+#include "asm/soc/ioapic.h"
+#include "asm/soc/apic.h"
 
 /*
     total: 256 ivs
@@ -51,6 +51,11 @@ __ivalloc_within(size_t a, size_t b, isr_cb handler)
             k++;
         }
 
+        if (j == 8) {
+            j = 0;
+            continue;
+        }
+
         if (k > b) {
             break;
         }