phil-opp / blog_os

Writing an OS in Rust
http://os.phil-opp.com
Apache License 2.0
14.27k stars 1.01k forks source link

Edition 3: Published a new `lazy_heap` crate to streamline new version of heap allocation module #1307

Open kennystrawnmusic opened 3 months ago

kennystrawnmusic commented 3 months ago

In my own kernel, I figured out how to initialize the heap using spin::Lazyand publish how I did it to crates.io to lighten the workload for everyone else. Might be worth considering as Edition 3 moves forward.

kennystrawnmusic commented 3 months ago

Here's how I initialize this in my kernel for those who are curious about initialization procedures.