Signed-off-by: Julien CLEMENT <julien.clement@epita.fr>
This commit is contained in:
parent
1bb4074e2f
commit
13f5c9dc0e
@ -23,9 +23,9 @@ pub struct SyscallContext {
|
|||||||
|
|
||||||
impl SyscallContext {
|
impl SyscallContext {
|
||||||
pub async fn run(&mut self) {
|
pub async fn run(&mut self) {
|
||||||
println!("Running async syscall runner");
|
println!("Running async syscall runner for {:?}", self.id);
|
||||||
self.dispatch().await;
|
self.dispatch().await;
|
||||||
println!("Syscall end, unblocking thread");
|
println!("Syscall {:?} end, unblocking thread", self.id);
|
||||||
SCHEDULER.lock().await.unblock(self.thread_id);
|
SCHEDULER.lock().await.unblock(self.thread_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -43,7 +43,7 @@ async fn syscall_runner(context: SyscallContextT) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn syscall_routine(syscall_id: SyscallId) -> u64 {
|
pub fn syscall_routine(syscall_id: SyscallId) -> u64 {
|
||||||
println!("Running syscall");
|
println!("Running syscall interrupt handler");
|
||||||
let context: SyscallContextT = Arc::new(RefCell::new(SyscallContext {
|
let context: SyscallContextT = Arc::new(RefCell::new(SyscallContext {
|
||||||
id: syscall_id,
|
id: syscall_id,
|
||||||
res: 0,
|
res: 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user