diff options
author | David Li <li.davidm96@gmail.com> | 2016-01-13 09:25:57 -0700 |
---|---|---|
committer | David Li <li.davidm96@gmail.com> | 2016-01-13 09:25:57 -0700 |
commit | 36b21d7691bb452a68d857a71c16b9f922b047a2 (patch) | |
tree | c118bac1b35ea929351a5c714a49c37513fb72c0 /src/syscall.rs | |
parent | 4a56b90b38884ee006e0e9f3cba5474cab6654dd (diff) |
Pass MMU to syscall handler
Diffstat (limited to 'src/syscall.rs')
-rw-r--r-- | src/syscall.rs | 4 |
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>; } |