1 #ifndef __LUNAIX_BOOTMEM_H
2 #define __LUNAIX_BOOTMEM_H
4 #include <lunaix/types.h>
9 * Architecture-defined memory manager during boot stage.
11 * It provide basic memory service before kernel's mm
12 * context is avaliable. As it's name stated, this is
13 * particularly useful for allocating temporary memory
14 * to get essential things done in the boot stage.
16 * Implementation detail is not enforced by Lunaix, but it
17 * is recommend that such memory pool should be reclaimed
18 * after somewhere as earlier as possible (should not later
19 * than the first process spawning)
24 bootmem_alloc(unsigned int size);
27 bootmem_free(void* ptr);
29 #endif /* __LUNAIX_BOOTMEM_H */