Reset code to post-03 branch

This commit is contained in:
Philipp Oppermann
2019-04-25 11:34:16 +02:00
parent 4eb7f94171
commit 23cbafab1c
5 changed files with 2 additions and 104 deletions

View File

@@ -1,12 +1,10 @@
#![cfg_attr(not(test), no_std)]
#![cfg_attr(not(test), no_main)]
#![cfg_attr(test, allow(unused_imports))]
#![no_std]
#![no_main]
use core::panic::PanicInfo;
mod vga_buffer;
#[cfg(not(test))]
#[no_mangle]
pub extern "C" fn _start() -> ! {
println!("Hello World{}", "!");
@@ -15,7 +13,6 @@ pub extern "C" fn _start() -> ! {
}
/// This function is called on panic.
#[cfg(not(test))]
#[panic_handler]
fn panic(info: &PanicInfo) -> ! {
println!("{}", info);