summaryrefslogtreecommitdiffstats
path: root/debug
diff options
context:
space:
mode:
Diffstat (limited to 'debug')
-rw-r--r--debug/debug.c11
-rw-r--r--debug/debug.h11
2 files changed, 22 insertions, 0 deletions
diff --git a/debug/debug.c b/debug/debug.c
new file mode 100644
index 0000000..77d5ce7
--- /dev/null
+++ b/debug/debug.c
@@ -0,0 +1,11 @@
+#include "debug.h"
+#include "lib/printf.h"
+
+bool _debug_has_output = false;
+
+void
+debug_init()
+{
+ _debug_init_arch();
+ kprintf("Debug console enabled\n");
+}
diff --git a/debug/debug.h b/debug/debug.h
new file mode 100644
index 0000000..13228b7
--- /dev/null
+++ b/debug/debug.h
@@ -0,0 +1,11 @@
+#ifndef _JOVE_DEBUG_H
+#define _JOVE_DEBUG_H 1
+
+#include <stdbool.h>
+
+extern bool _debug_has_output;
+
+void debug_init(void);
+void _debug_init_arch(void);
+
+#endif