Comment out unused code blocks

This commit is contained in:
gil 2024-05-16 00:37:21 -05:00
parent 6846ecbcc0
commit b78f21ed21

View file

@ -52,14 +52,14 @@ extern "C" fn start() -> ! {
unsafe { heap::init() };
// Now we're free to use dynamic allocation!
{
extern crate alloc;
use alloc::boxed::Box;
let _my_heap_pointer = Box::new(10);
// _my_heap_pointer lives on the heap!
}
// {
// extern crate alloc;
// use alloc::boxed::Box;
// let _my_heap_pointer = Box::new(10);
// // _my_heap_pointer lives on the heap!
// }
println!("This should not print because the console is not initialised.");
// println!("This should not print because the console is not initialised.");
unsafe { uart::init_console(0x1000_0000) };
println!("Hello, world!");