forked from LowLevelDevs/FoundryOS
Formatting changes, called 'cargo fmt'
This commit is contained in:
+3
-7
@@ -1,19 +1,17 @@
|
||||
#![no_std]
|
||||
|
||||
#![feature(abi_x86_interrupt)]
|
||||
|
||||
use core::arch::asm;
|
||||
use limine::request::{RequestsEndMarker, RequestsStartMarker};
|
||||
use limine::BaseRevision;
|
||||
|
||||
pub use lib_serial::{serial_print, serial_println, serial_read};
|
||||
pub use lib_ascii::{print, print_log, println, println_log, WRITER};
|
||||
pub use lib_serial::{serial_print, serial_println, serial_read};
|
||||
|
||||
mod arch;
|
||||
|
||||
use lib_framebuffer;
|
||||
|
||||
|
||||
/// Sets the base revision to the latest revision supported by the crate.
|
||||
/// See specification for further info.
|
||||
/// Be sure to mark all limine requests with #[used], otherwise they may be removed by the compiler.
|
||||
@@ -49,14 +47,12 @@ pub fn hcf() -> ! {
|
||||
}
|
||||
|
||||
pub fn boot() -> Result<(), &'static str> {
|
||||
|
||||
if !BASE_REVISION.is_supported() {
|
||||
return Err("base revision not supported");
|
||||
}
|
||||
|
||||
lib_serial::init()?;
|
||||
arch::x86_64::interrupts::init_idt();
|
||||
|
||||
|
||||
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user