Skip to content

Commit

Permalink
fix: make memory usable
Browse files Browse the repository at this point in the history
  • Loading branch information
mopp committed Oct 9, 2018
1 parent 7fc7003 commit 737d5a1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/kernel.rs
Expand Up @@ -44,6 +44,11 @@ pub extern "C" fn main(argc: usize, argv: *const VirtualAddress) {
// Initialize stuffs depending on the architecture.
arch::init_arch(argv, &mut region_manager);

{
let m = &mut *context::GLOBAL_CONTEXT.memory_region_manager.lock();
*m = region_manager;
}

memory::init();

println!("Start Axel");
Expand Down

0 comments on commit 737d5a1

Please sign in to comment.