forked from AbleOS/ableos
30 lines
693 B
Rust
30 lines
693 B
Rust
//!
|
|
// #[allow(deprecated)]
|
|
// use limine::{TerminalRequest, TerminalResponse};
|
|
|
|
#[no_mangle]
|
|
#[allow(deprecated)]
|
|
unsafe extern "C" fn _kernel_start() -> ! {
|
|
use limine::{Framebuffer, FramebufferRequest, NonNullPtr};
|
|
static FB_REQ: FramebufferRequest = FramebufferRequest::new(0);
|
|
let fb1: &NonNullPtr<Framebuffer> = &FB_REQ.get_response().get().unwrap().framebuffers()[0];
|
|
unsafe {
|
|
fb1.address.as_ptr().expect("REASON").write_volatile(0x00);
|
|
}
|
|
|
|
loop {}
|
|
}
|
|
|
|
pub fn log(_args: core::fmt::Arguments<'_>) -> core::fmt::Result {
|
|
panic!()
|
|
}
|
|
|
|
pub fn spin_loop() -> ! {
|
|
loop {}
|
|
}
|
|
pub fn hardware_random_u64() -> u64 {
|
|
0
|
|
}
|
|
|
|
pub const PAGE_SIZE: usize = 10;
|