File size: 1,282 Bytes
433dc73
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// ==============================================================================
// VYRON Micro-OS Kernel - Library Exports
// Core Kernel Subsystems and Architectural Modules
// ==============================================================================

pub mod kernel;
pub mod task;
pub mod scheduler;
pub mod timer;
pub mod sync;
pub mod memory;
pub mod syscall;

// Enhanced Subsystems Adapted from EuraliOS (MIT License - Ben Dudson)
pub mod ipc;
pub mod drivers;
pub mod vfs;

pub use kernel::{KernelDiagnostics, LogLevel, boot_banner};
pub use task::{Task, TaskState, TaskPriority, TaskContext};
pub use scheduler::{RoundRobinScheduler, MlfqScheduler, ContextSwitchRecord};
pub use timer::HardwareTimer;
pub use sync::{Spinlock, SpinlockGuard};
pub use memory::{BumpAllocator, FreeListAllocator};
pub use syscall::{SyscallDispatcher, SYS_WRITE, SYS_YIELD, SYS_GETPID, SYS_ALLOC, SYS_EXIT};

// IPC Exports
pub use ipc::{IpcHub, RendezvousChannel, Message, MessageData, IpcError};

// Drivers & Hardware Bus Exports
pub use drivers::{PciBus, PciDevice, PciLocation, PciBar, PciBarType};
pub use drivers::net::{MacAddress, Rtl8139Device, VirtioNetDevice, VirtioNetHeader};

// Capability VFS Exports
pub use vfs::{VfsRoot, MemoryDirectory, MemoryFile, FileLike, DirLike};