Skip to content

Commit

Permalink
Adds mountlist
Browse files Browse the repository at this point in the history
  • Loading branch information
ultimaweapon committed Jul 21, 2024
1 parent 50548ae commit 2d23a47
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kernel-1100/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ use self::ucred::Ucred;
use self::uio::Uio;
use core::ffi::{c_char, c_int};
use okf::malloc::MallocFlags;
use okf::queue::TailQueue;
use okf::socket::SockAddr;
use okf::uio::UioSeg;
use okf::{offset, panic_handler, MappedKernel, StaticMut};
Expand All @@ -32,9 +33,10 @@ pub struct Kernel(*const u8);
impl okf::Kernel for Kernel {
#[offset(0x221CCF8)]
const ACCEPT_MTX: StaticMut<Self::Mtx>;

#[offset(0x15415B0)]
const M_TEMP: StaticMut<Self::Malloc>;
#[offset(0x1A6AD60)]
const MOUNTLIST: StaticMut<TailQueue<Self::Mount>>;
const NOCPU: u32 = 0xff;

type File = File;
Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use self::lock::{LockObject, Mtx};
use self::malloc::{Malloc, MallocFlags};
use self::mount::Mount;
use self::pcpu::Pcpu;
use self::queue::TailQueue;
use self::socket::{SockAddr, Socket};
use self::thread::Thread;
use self::ucred::Ucred;
Expand Down Expand Up @@ -42,6 +43,7 @@ macro_rules! kernel {
pub trait Kernel: MappedKernel {
const ACCEPT_MTX: StaticMut<Self::Mtx>;
const M_TEMP: StaticMut<Self::Malloc>;
const MOUNTLIST: StaticMut<TailQueue<Self::Mount>>;
const NOCPU: u32;

type File: File;
Expand Down

0 comments on commit 2d23a47

Please sign in to comment.