feat(kernel): add Kernel struct, MockPlatform, and simple syscalls (GetTime, GetProcessId, Yield)

This commit is contained in:
2026-10-18 00:15:40 +02:00
parent 8dd36e7d6d
commit d0a0ba788f
9 changed files with 355 additions and 10 deletions

View File

@@ -0,0 +1,15 @@
use domain::scheduler::SchedulerDecision;
use platform::Platform;
use types::id::{CoreId, IrqId, ThreadId};
use crate::Kernel;
impl<P: Platform> Kernel<P> {
pub fn handle_tick(&mut self, _core: CoreId) -> SchedulerDecision {
SchedulerDecision::Continue
}
pub fn handle_interrupt(&mut self, _irq: IrqId) -> Option<ThreadId> {
None
}
}