From ff27e3d5ca61fb6234b0876dc3368d0e5dfc5a95 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Sat, 6 Dec 2014 18:39:12 +0100 Subject: Trying to track an annoying bug. --- kernel/include/slab_alloc.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'kernel/include/slab_alloc.h') diff --git a/kernel/include/slab_alloc.h b/kernel/include/slab_alloc.h index 5c575ba..5355a66 100644 --- a/kernel/include/slab_alloc.h +++ b/kernel/include/slab_alloc.h @@ -8,7 +8,14 @@ #include #include -#include +#if defined(__linux__) +//redefine necessary stuff +#include +#define ASSERT assert +#define PAGE_SIZE 0x1000 +#else +#include // this is macroscope +#endif // expected format for the array of slab_type_t given to slab_create : // an array of slab_type descriptors, with last descriptor full of zeroes -- cgit v1.2.3