add support to GIC ITS, and the MSI service base on it
[lunaix-os.git] / lunaix-os / includes / sdbg / gdbstub.h
index d2e329e937a75f4d9888381c481cf290362e22a7..bd8b6464e9e7fe5630a902e8858a9a86aa62d192 100644 (file)
@@ -1,9 +1,18 @@
 #ifndef __LUNAIX_GDBSTUB_H
 #define __LUNAIX_GDBSTUB_H
 
-#include <arch/i386/interrupts.h>
+#include <lunaix/hart_state.h>
+#include <hal/serial.h>
+#include <sys/gdbstub.h>
+
+struct gdb_state
+{
+    int signum;
+    struct serial_dev* sdev;
+    reg_t registers[GDB_CPU_NUM_REGISTERS];
+};
 
 void
-gdbstub_loop(isr_param* param);
+gdbstub_loop(struct hart_state* hstate);
 
 #endif /* __LUNAIX_GDBSTUB_H */