2023-07-13 22:41:09 -05:00
|
|
|
//!
|
2023-07-14 23:13:29 -05:00
|
|
|
// #[allow(deprecated)]
|
|
|
|
// use limine::{TerminalRequest, TerminalResponse};
|
2023-07-14 20:00:50 -05:00
|
|
|
|
2023-07-13 22:41:09 -05:00
|
|
|
#[no_mangle]
|
2023-07-17 00:36:06 -05:00
|
|
|
#[allow(deprecated)]
|
2023-07-14 19:38:13 -05:00
|
|
|
unsafe extern "C" fn _kernel_start() -> ! {
|
2023-07-17 00:36:06 -05:00
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2023-07-14 19:38:13 -05:00
|
|
|
loop {}
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn log(_args: core::fmt::Arguments<'_>) -> core::fmt::Result {
|
|
|
|
panic!()
|
|
|
|
}
|
|
|
|
|
2023-07-15 08:04:53 -05:00
|
|
|
pub fn spin_loop() -> ! {
|
2023-07-14 19:38:13 -05:00
|
|
|
loop {}
|
|
|
|
}
|
|
|
|
pub fn hardware_random_u64() -> u64 {
|
|
|
|
0
|
|
|
|
}
|
|
|
|
|
|
|
|
pub const PAGE_SIZE: usize = 10;
|