Skip to content

Commit

Permalink
set up the skeleton and laid the foundation for the rs232 driver to b…
Browse files Browse the repository at this point in the history
…e used for logging
  • Loading branch information
mdpatelcsecon committed Oct 29, 2024
1 parent 6df5569 commit 01bf0a3
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 0 deletions.
Empty file added kernel/src/hal/bootinfo/mod.rs
Empty file.
Empty file added kernel/src/hal/drivers/mod.rs
Empty file.
1 change: 1 addition & 0 deletions kernel/src/hal/drivers/rs232/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Empty file.
Empty file.
5 changes: 5 additions & 0 deletions kernel/src/hal/isa/interfaces/memory.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pub trait Memory {
type VAddr;
type PAddr;
type IoAddr;
}
1 change: 1 addition & 0 deletions kernel/src/hal/isa/interfaces/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub mod memory;
2 changes: 2 additions & 0 deletions kernel/src/hal/isa/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mod implementations;
pub mod interfaces;
9 changes: 9 additions & 0 deletions kernel/src/hal/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
///! # Hardware Abstraction Layer
///!
///! This module contains the hardware abstraction layer of the kernel. It is responsible for
///! initializing the hardware and providing an interface to the hardware for the rest of the
///! kernel. It deals with the specifics of the hardware configuration and provides a common
///! set of interfaces for the rest of the kernel to use.
pub mod bootinfo;
pub mod drivers;
pub mod isa;
3 changes: 3 additions & 0 deletions kernel/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#![no_std]
#![no_main]

mod hal;

use core::panic::PanicInfo;

#[no_mangle]
unsafe extern "C" fn main() -> ! {
Expand Down

0 comments on commit 01bf0a3

Please sign in to comment.