rv64: riscv plic driver, time accouting

This commit is contained in:
2025-01-20 13:22:24 +02:00
parent 8ba37c9762
commit 86509e39c1
11 changed files with 477 additions and 42 deletions
+2 -3
View File
@@ -73,7 +73,7 @@ impl<K: KernelTableManager, PA: PhysicalMemoryAllocator<Address = PhysicalAddres
let mut stack = StackBuilder::new(stack_base, USER_TASK_PAGES * 0x1000);
log::info!(
log::debug!(
"Set up user task: pc={:#x}, sp={:#x}, tp={:#x}",
context.entry,
context.stack_pointer,
@@ -144,8 +144,7 @@ impl<K: KernelTableManager, PA: PhysicalMemoryAllocator<Address = PhysicalAddres
}
fn align_stack_for_entry(sp: usize) -> usize {
let _ = sp;
todo!()
sp
}
unsafe fn enter(&self) -> ! {