refactor: migrate server-framework to depend on libkos
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
use types::bounded::CapSlot;
|
||||
|
||||
pub async fn send(endpoint: CapSlot, w0: usize, w1: usize, w2: usize, w3: usize) -> usize {
|
||||
userspace::syscall::send(endpoint, w0, w1, w2, w3)
|
||||
libkos::syscall::send(endpoint, w0, w1, w2, w3)
|
||||
}
|
||||
|
||||
pub async fn receive(endpoint: CapSlot) -> (usize, usize, usize, usize) {
|
||||
userspace::syscall::receive(endpoint)
|
||||
libkos::syscall::receive(endpoint)
|
||||
}
|
||||
|
||||
pub async fn wait_for_interrupt(_irq: CapSlot) {
|
||||
userspace::syscall::yield_now();
|
||||
libkos::syscall::yield_now();
|
||||
}
|
||||
|
||||
pub async fn acknowledge_interrupt(_irq: CapSlot) {
|
||||
|
||||
Reference in New Issue
Block a user