summaryrefslogblamecommitdiffstats
path: root/lib/jove.h
blob: 4aa60ed30392a975eae38043f35963cb540bf24d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                                                         
#ifndef JOVE_LIB_JOVE_H
#define JOVE_LIB_JOVE_H 1

#define ALWAYS_INLINE inline __attribute__((always_inline))
#define PAGEALIGN __attribute__((aligned(0x1000)))

//#define LOG2(n) (__builtin_clz(n) ^ 31)

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