blob: 6015112a80051bc25803bbda76770e155f15dca9 (
plain) (
tree)
|
|
#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) (31 - __builtin_clz(n))
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
|