Heap Allocation

1 · Philipp Oppermann · June 26, 2019, 8:15 p.m.
This post adds support for heap allocation to our kernel. First, it gives an introduction to dynamic memory and shows how the borrow checker prevents common allocation errors. It then implements the basic allocation interface of Rust, creates a heap memory region, and sets up an allocator crate. At the end of this post all the allocation and collection types of the built-in alloc crate will be available to our kernel. This blog is openly developed on GitHub. If you have any problems or question...