feat(server-framework): add Server trait, Encode/Decode, async executor, syscall wrappers, and mock arch for host testing

This commit is contained in:
2026-10-18 02:55:22 +02:00
parent 5c29c0845d
commit c14fe50c23
12 changed files with 303 additions and 23 deletions

View File

@@ -0,0 +1,15 @@
pub async fn send(endpoint: usize, w0: usize, w1: usize, w2: usize, w3: usize) -> usize {
userspace::syscall::send(endpoint, w0, w1, w2, w3)
}
pub async fn receive(endpoint: usize) -> (usize, usize, usize, usize) {
userspace::syscall::receive(endpoint)
}
pub async fn wait_for_interrupt(irq: usize) {
userspace::syscall::yield_now();
}
pub async fn acknowledge_interrupt(irq: usize) {
let _ = irq;
}