summaryrefslogtreecommitdiffstats
path: root/include/jove.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/jove.h')
-rw-r--r--include/jove.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/jove.h b/include/jove.h
new file mode 100644
index 0000000..2330492
--- /dev/null
+++ b/include/jove.h
@@ -0,0 +1,13 @@
+#ifndef JOVE_LIB_JOVE_H
+#define JOVE_LIB_JOVE_H 1
+
+#define ALWAYS_INLINE inline __attribute__((always_inline))
+#define PAGEALIGN __attribute__((aligned(0x1000)))
+
+extern void *_kernel_start;
+extern void *_kernel_end;
+
+__attribute__((noreturn)) void _kpanic(const char *file, int line, const char *fmt, ...);
+#define kpanic(...) _kpanic(__FILE__, __LINE__, __VA_ARGS__)
+
+#endif