1 #![no_std] 2 #![feature(allocator_api)] 3 4 extern crate alloc; 5 6 use crate::platform::allocator::{Allocator, NEWALLOCATOR}; 7 8 mod platform; 9 mod header; 10 11 #[global_allocator] 12 static ALLOCATOR: Allocator = NEWALLOCATOR; 13 14 #[panic_handler] 15 #[no_mangle] 16 #[cfg(not(target_os = "linux"))] 17 fn panic_handle_func(info: &PanicInfo) -> ! { 18 loop {} 19 } 20