Code-base clean-up and refactoring (#47)
[lunaix-os.git] / lunaix-os / arch / generic / includes / sys-generic / bootmem.h
1 #ifndef __LUNAIX_BOOTMEM_H
2 #define __LUNAIX_BOOTMEM_H
3
4 #include <lunaix/types.h>
5
6 /*
7  * bootmem:
8  *
9  * Architecture-defined memory manager during boot stage. 
10  * 
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.
15  * 
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)
20  * 
21  */
22
23 void*
24 bootmem_alloc(unsigned int size);
25
26 void
27 bootmem_free(void* ptr);
28
29 #endif /* __LUNAIX_BOOTMEM_H */