diff options
| author | Christian Cunningham <c@localhost> | 2022-08-22 21:00:17 -0700 |
|---|---|---|
| committer | Christian Cunningham <c@localhost> | 2022-08-22 21:00:17 -0700 |
| commit | cc334d442554a235cfe13f9b5c0b7d1f81501b0f (patch) | |
| tree | 481822e8accaf78471a52bc17e81a317bb34e2f9 | |
| parent | 188a08c3a340005d59d497e836993cb9349c9cbe (diff) | |
Panic info
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | src/.kernel.rs.swp | bin | 12288 -> 0 bytes | |||
| -rw-r--r-- | src/kernel.rs | 4 |
3 files changed, 3 insertions, 2 deletions
@@ -1,2 +1,3 @@ /target Cargo.lock +*.swp diff --git a/src/.kernel.rs.swp b/src/.kernel.rs.swp Binary files differdeleted file mode 100644 index ed00d5b..0000000 --- a/src/.kernel.rs.swp +++ /dev/null diff --git a/src/kernel.rs b/src/kernel.rs index 8218691..2382345 100644 --- a/src/kernel.rs +++ b/src/kernel.rs @@ -13,7 +13,8 @@ use core::panic::PanicInfo; /// This function is called on panic. #[panic_handler] -fn panic(_info: &PanicInfo) -> ! { +fn panic(info: &PanicInfo) -> ! { + println!("{}", info); loop {} } @@ -28,7 +29,6 @@ pub extern "C" fn _start() -> ! { WRITER.write_string("Hello World!"); WRITER.write_string("\n\nHi\n"); println!("{}", 5); - //print_something(); loop {} } |
