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, 3 insertions, 1 deletions
diff --git a/src/syscall.rs b/src/syscall.rs
index 4620e5f..6da9e47 100644
--- a/src/syscall.rs
+++ b/src/syscall.rs
@@ -14,10 +14,12 @@
// You should have received a copy of the GNU General Public License
// along with rustv. If not, see <http://www.gnu.org/licenses/>.
+use memory::Mmu;
use register_file::RegisterFile;
use trap;
pub trait SyscallHandler {
// Can't take cache because syscall can't stall
- fn syscall(&mut self, core_id: usize, registers: &mut RegisterFile) -> Option<trap::Trap>;
+ fn syscall(&mut self, core_id: usize,
+ registers: &mut RegisterFile, mmu: &Mmu) -> Option<trap::Trap>;
}