aboutsummaryrefslogtreecommitdiff
path: root/src/syscall.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/syscall.rs')
-rw-r--r--src/syscall.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/syscall.rs b/src/syscall.rs
index 6da9e47..01cc8f0 100644
--- a/src/syscall.rs
+++ b/src/syscall.rs
@@ -20,6 +20,10 @@ use trap;
pub trait SyscallHandler {
// Can't take cache because syscall can't stall
+ /// Implement the syscall requested by core_id.
fn syscall(&mut self, core_id: usize,
registers: &mut RegisterFile, mmu: &Mmu) -> Option<trap::Trap>;
+
+ /// Determine, after each cycle, whether the processor should halt.
+ fn should_halt(&self) -> bool;
}