mirror of
https://github.com/iceHtwoO/novaOS.git
synced 2026-04-17 04:32:27 +00:00
Impelement a basic logger, WIP
This commit is contained in:
@@ -6,14 +6,13 @@ extern crate alloc;
|
||||
use alloc::boxed::Box;
|
||||
use core::{
|
||||
arch::asm,
|
||||
fmt,
|
||||
panic::PanicInfo,
|
||||
ptr::{read_volatile, write_volatile},
|
||||
};
|
||||
|
||||
use heap::Heap;
|
||||
|
||||
use crate::logger::{DefaultLogger, Logger};
|
||||
use crate::{interrupt_handlers::initialize_interrupt_handler, logger::DefaultLogger};
|
||||
|
||||
static PERIPHERAL_BASE: u32 = 0x3F00_0000;
|
||||
|
||||
@@ -74,4 +73,5 @@ pub fn get_current_el() -> u64 {
|
||||
|
||||
pub fn initialize_kernel() {
|
||||
logger::set_logger(Box::new(DefaultLogger));
|
||||
initialize_interrupt_handler();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user