Today I've written the first lines of code for the XEOS memory allocator.
For now, I won't implement the malloc()
set of functions in the C library, because I haven't implemented the brk
and mmap
system calls.
Doing this would surely be fun, but right now I need to code some other kernel stuff.
So I decided to write a specific allocator for the Xeos kernel. This way, it will have it's own allocator, managing it's own memory region.
I guess it's the best solution for now, to get things correctly done.
No surprise, this will be kmalloc()
.
This will save me a lot of time, and make the code more maintainable for later.
I'm also going to see if I can build LLVM for Xeos... I'm a bit tired of GCC, since Apple's XCode 4... ; )