Adds justfile to build everything

This commit is contained in:
2026-02-13 23:20:36 +01:00
parent 27a3847c13
commit 00d9ce656c
17 changed files with 36 additions and 21 deletions

View File

@@ -5,7 +5,7 @@ edition = "2024"
[dependencies]
embedded-alloc = "0.7"
kernel-macros = { path = "../kernel-macros" }
kernel-macros = { path = "../crates/kernel-macros" }
log = "0.4"
critical-section = { version = "1", features = ["restore-state-bool"] }
bffs = { path = "../bffs" }
bffs = { path = "../crates/bffs" }

View File

@@ -53,7 +53,6 @@ pub extern "C" fn supervisor_mode_entry() {
init_log().unwrap();
Vga::init();
scheduler_init();
// enable_supervisor_interrupt();
}
info!("Hello World !");
@@ -62,7 +61,7 @@ pub extern "C" fn supervisor_mode_entry() {
create_process(test, "proc1");
create_process(proc2, "proc2");
// MemoryDisk::new();
MemoryDisk::test();
enable_supervisor_interrupt();
idle();

View File

@@ -2,12 +2,11 @@ use core::str;
use log::info;
const DISK_ADDR: usize = 0x9000_0000;
const DISK_SIZE: usize = 16 * 1024 * 1024; // 16MB
pub struct MemoryDisk {}
impl MemoryDisk {
pub fn new() {
pub fn test() {
let test = unsafe { str::from_raw_parts(DISK_ADDR as *const u8, 13) };
info!("{}", test);
}

View File

@@ -1,13 +1,11 @@
use core::{arch::asm, time::Duration};
use log::info;
use core::time::Duration;
use crate::syscall::{sleep, write_int_temp, write_string_temp};
#[repr(align(32))]
struct Alignement([u8; 132]);
struct Alignement([u8; 136]);
static PROG: Alignement = Alignement(*include_bytes!("../../out.mem"));
static PROG: Alignement = Alignement(*include_bytes!("../../user/test_pic/test_pic.mem"));
pub fn test() {
write_int_temp(PROG.0.as_ptr() as u64);