Trait rustv::syscall::SyscallHandler
[−]
[src]
pub trait SyscallHandler { fn syscall(
&mut self,
core_id: usize,
registers: &mut RegisterFile,
mmu: &Mmu
) -> Option<Trap>; fn should_halt(&self) -> bool; }
Required Methods
fn syscall(
&mut self,
core_id: usize,
registers: &mut RegisterFile,
mmu: &Mmu
) -> Option<Trap>
&mut self,
core_id: usize,
registers: &mut RegisterFile,
mmu: &Mmu
) -> Option<Trap>
Implement the syscall requested by core_id.
fn should_halt(&self) -> bool
Determine, after each cycle, whether the processor should halt.