Start iso structs, with rust black magic
Some checks failed
continuous-integration/drone/push Build is failing

Signed-off-by: Julien CLEMENT <julien.clement@epita.fr>
This commit is contained in:
Julien CLEMENT 2022-12-17 19:57:49 +01:00
parent e84a2e5727
commit 1ca57fdcdd
4 changed files with 3 additions and 6 deletions

@ -1,5 +1,3 @@
use crate::println;
use core::future::Future; use core::future::Future;
use core::pin::Pin; use core::pin::Pin;
use core::sync::atomic::{AtomicBool, Ordering}; use core::sync::atomic::{AtomicBool, Ordering};

1
src/fs/mod.rs Normal file

@ -0,0 +1 @@
mod iso;

@ -1,11 +1,8 @@
use crate::println;
use super::{InterruptIndex, PICS}; use super::{InterruptIndex, PICS};
use x86_64::structures::idt::InterruptStackFrame; use x86_64::structures::idt::InterruptStackFrame;
fn disk_interrupt_handler(disk: u16) { fn disk_interrupt_handler(_disk: u16) {
crate::drivers::atapi::interrupt::mark_interrupt(); crate::drivers::atapi::interrupt::mark_interrupt();
// println!("Received disk {} interrupt", disk);
} }
pub extern "x86-interrupt" fn disk1_interrupt_handler(_stack_frame: InterruptStackFrame) { pub extern "x86-interrupt" fn disk1_interrupt_handler(_stack_frame: InterruptStackFrame) {

@ -7,6 +7,7 @@ mod drivers;
mod interrupts; mod interrupts;
mod memory; mod memory;
mod task; mod task;
mod fs;
//#[macro_use] //#[macro_use]
extern crate alloc; extern crate alloc;