From ace65b453151845bc361f21f3e5b651c35f9f126 Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Wed, 22 May 2024 13:00:41 -0400 Subject: massive refactor for mp and organization --- include/jove.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 include/jove.h (limited to 'include/jove.h') 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 -- cgit v1.2.1