Adjust comments to be equal with post

This commit is contained in:
Philipp Oppermann
2019-06-26 21:08:08 +02:00
parent df75f7f4e8
commit 4792ec41b1
2 changed files with 1 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ fn kernel_main(boot_info: &'static BootInfo) -> ! {
} }
println!("vec at {:p}", vec.as_slice()); println!("vec at {:p}", vec.as_slice());
// create a reference counted vector -> will be deallocated when count reaches 0 // create a reference counted vector -> will be freed when count reaches 0
let reference_counted = Rc::new(vec![1, 2, 3]); let reference_counted = Rc::new(vec![1, 2, 3]);
let cloned_reference = reference_counted.clone(); let cloned_reference = reference_counted.clone();
println!( println!(

View File

@@ -20,7 +20,6 @@ fn main(boot_info: &'static BootInfo) -> ! {
blog_os::init(); blog_os::init();
let mut mapper = unsafe { memory::init(boot_info.physical_memory_offset) }; let mut mapper = unsafe { memory::init(boot_info.physical_memory_offset) };
let mut frame_allocator = unsafe { BootInfoFrameAllocator::init(&boot_info.memory_map) }; let mut frame_allocator = unsafe { BootInfoFrameAllocator::init(&boot_info.memory_map) };
allocator::init_heap(&mut mapper, &mut frame_allocator).expect("heap initialization failed"); allocator::init_heap(&mut mapper, &mut frame_allocator).expect("heap initialization failed");
test_main(); test_main();