configuration option for kernel's multiboot-compliance
[quarnos.git] / resources / slob.h
blob0a4c570f6cd5a4f0df01ec3b4b4e2b33107b81ff
1 #ifndef _SLOB_H_
2 #define _SLOB_H_
4 #include "res_fs.h"
6 #include "libs/list.h"
8 namespace resources {
9 class slob : public res_fs {
10 private:
11 const void *start_heap;
13 struct memory_block {
14 void *start;
15 void *end;
18 list<memory_block> kernel_memory;
20 int memory_size;
21 public:
22 slob();
24 res_buffer *allocate_space(int size);
26 void deallocate_space(res_buffer *ptr);
27 /* Interface is not ready yet */
29 static void register_resource();
33 #endif