add support to GIC ITS, and the MSI service base on it
[lunaix-os.git] / lunaix-os / includes / sdbg / gdbstub.h
index 58e48ab7dbfeac817c5c34a55f68ae5f63801166..bd8b6464e9e7fe5630a902e8858a9a86aa62d192 100644 (file)
@@ -1,9 +1,18 @@
 #ifndef __LUNAIX_GDBSTUB_H
 #define __LUNAIX_GDBSTUB_H
 
-#include <arch/x86/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 */