From 8a9208612eec8ddae4c418485d848ecfa0613699 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Mon, 30 Oct 2023 22:12:14 +0100 Subject: Meta: Move kernel and userland to their own folders. This is to allow both the kernel and the userland to share certain header files and to make the folder structure a bit more clear. --- kernel/log.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 kernel/log.h (limited to 'kernel/log.h') diff --git a/kernel/log.h b/kernel/log.h new file mode 100644 index 0000000..fe499bc --- /dev/null +++ b/kernel/log.h @@ -0,0 +1,10 @@ +#include +#include + +#define LOG_NOTE 3 +#define LOG_WARN 2 +#define LOG_ERROR 1 +#define LOG_SUCCESS 0 + +void klog(char *str, int code); +void dump_backtrace(uint32_t max_frames); -- cgit v1.2.3