aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2017-03-06 01:54:55 +0100
committerRobin Krahl <robin.krahl@ireas.org>2017-03-06 01:56:22 +0100
commit0041476a0f804db9266c54b8ce62a585e7b30890 (patch)
tree15ff84d78a19b62657d34376f6ade1f8f25a5b46 /core
parentc3c4a57262ae9a2530598ae79b7c703d68da6abf (diff)
downloadgarmos-0041476a0f804db9266c54b8ce62a585e7b30890.tar.gz
garmos-0041476a0f804db9266c54b8ce62a585e7b30890.tar.bz2
kernel: add debug function ker_dbg
ker_dbg writes a string to the terminal. In future, it might also write to a text file, to the serial console or other channels.
Diffstat (limited to 'core')
-rw-r--r--core/kernel.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/kernel.c b/core/kernel.c
index 586fe20..c159aef 100644
--- a/core/kernel.c
+++ b/core/kernel.c
@@ -13,9 +13,17 @@
*/
#include <garmos/gdt.h>
+#include <garmos/kernel.h>
#include <garmos/term.h>
#include <garmos/types.h>
+
+void ker_dbg(char *s)
+{
+ term_print(s);
+ term_print("\n");
+}
+
void kernel_main(uint32_t multiboot, unsigned int *magicno)
{
gdt_init();