link in the prelude object
This commit is contained in:
1 parent
559a4275ba
commit
e20030fbc3
4 files changed
+60
-19
No files matched your search
+6
-1
@@ -10,6 +10,10 @@ const VGA_ADDR: usize = 0xb8000;
|
||||
|
||||
const STR: &[u8] = b"the quick brown fox jumps over the lazy dog";
|
||||
|
||||
extern "C" {
|
||||
fn prelude() -> !;
|
||||
}
|
||||
|
||||
#[panic_handler]
|
||||
fn panic(_info: &PanicInfo) -> ! {
|
||||
hlt()
|
||||
@@ -43,7 +47,8 @@ pub extern "C" fn _start() -> ! {
|
||||
|
||||
vga_buf[0] = 0x1f02; //smiley
|
||||
|
||||
hlt()
|
||||
// hlt()
|
||||
unsafe { prelude() };
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
||||
Reference in new issue
Block a user