better logging
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: Julien CLEMENT <julien.clement@epita.fr>
This commit is contained in:
Julien CLEMENT 2023-01-04 21:51:40 +01:00
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,