diff options
author | Jon Santmyer <jon@jonsantmyer.com> | 2024-03-15 13:16:02 -0400 |
---|---|---|
committer | Jon Santmyer <jon@jonsantmyer.com> | 2024-03-15 13:16:02 -0400 |
commit | dd5d9e1d48396cbc226ff14fe557a55613c91fcb (patch) | |
tree | b0ec9f54b80f26777ac08b723b42c1c64c5a2bda /lib/jove.h | |
parent | f46ab8ca2050ee77edf6e6b979875426bdaf29dc (diff) | |
download | jove-kernel-dd5d9e1d48396cbc226ff14fe557a55613c91fcb.tar.gz jove-kernel-dd5d9e1d48396cbc226ff14fe557a55613c91fcb.tar.bz2 jove-kernel-dd5d9e1d48396cbc226ff14fe557a55613c91fcb.zip |
better buddy memory allocator
Diffstat (limited to 'lib/jove.h')
-rw-r--r-- | lib/jove.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4,7 +4,7 @@ #define ALWAYS_INLINE inline __attribute__((always_inline)) #define PAGEALIGN __attribute__((aligned(0x1000))) -//#define LOG2(n) (__builtin_clz(n) ^ 31) +#define LOG2(n) (31 - __builtin_clz(n)) extern void *_kernel_start; extern void *_kernel_end; |