From 2d23a472b032017e0cc50b0b36efd9fa4dddf7e2 Mon Sep 17 00:00:00 2001 From: Putta Khunchalee Date: Sun, 21 Jul 2024 21:48:07 +0700 Subject: [PATCH] Adds mountlist --- kernel-1100/src/lib.rs | 4 +++- src/lib.rs | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/kernel-1100/src/lib.rs b/kernel-1100/src/lib.rs index 4b4f850..da853a8 100644 --- a/kernel-1100/src/lib.rs +++ b/kernel-1100/src/lib.rs @@ -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}; @@ -32,9 +33,10 @@ pub struct Kernel(*const u8); impl okf::Kernel for Kernel { #[offset(0x221CCF8)] const ACCEPT_MTX: StaticMut; - #[offset(0x15415B0)] const M_TEMP: StaticMut; + #[offset(0x1A6AD60)] + const MOUNTLIST: StaticMut>; const NOCPU: u32 = 0xff; type File = File; diff --git a/src/lib.rs b/src/lib.rs index 97e07d3..c4c1eca 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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; @@ -42,6 +43,7 @@ macro_rules! kernel { pub trait Kernel: MappedKernel { const ACCEPT_MTX: StaticMut; const M_TEMP: StaticMut; + const MOUNTLIST: StaticMut>; const NOCPU: u32; type File: File;