aboutsummaryrefslogtreecommitdiff
path: root/pk/vm.h
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@eecs.berkeley.edu>2014-02-04 15:29:06 -0800
committerAndrew Waterman <waterman@eecs.berkeley.edu>2014-02-04 15:29:06 -0800
commitf1f8dbbed01d67a3cb64a17c73078d124c33d2ab (patch)
tree77181fb45946e2a5883b87d09d65d08439186672 /pk/vm.h
parentac88604e8850779c33ec888ccc8399604fb2677c (diff)
downloadpk-f1f8dbbed01d67a3cb64a17c73078d124c33d2ab.zip
pk-f1f8dbbed01d67a3cb64a17c73078d124c33d2ab.tar.gz
pk-f1f8dbbed01d67a3cb64a17c73078d124c33d2ab.tar.bz2
Abandon MIPS convention for indicating syscall errors in register a3
Diffstat (limited to 'pk/vm.h')
-rw-r--r--pk/vm.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/pk/vm.h b/pk/vm.h
index 8f5e55f..cdd4f77 100644
--- a/pk/vm.h
+++ b/pk/vm.h
@@ -21,9 +21,9 @@ void vm_init();
int handle_page_fault(uintptr_t vaddr, int prot);
void populate_mapping(const void* start, size_t size, int prot);
uintptr_t __do_mmap(uintptr_t addr, size_t length, int prot, int flags, file_t* file, off_t offset);
-sysret_t do_mmap(uintptr_t addr, size_t length, int prot, int flags, int fd, off_t offset);
-sysret_t do_munmap(uintptr_t addr, size_t length);
-sysret_t do_mremap(uintptr_t addr, size_t old_size, size_t new_size, int flags);
-sysret_t do_brk(uintptr_t addr);
+uintptr_t do_mmap(uintptr_t addr, size_t length, int prot, int flags, int fd, off_t offset);
+int do_munmap(uintptr_t addr, size_t length);
+uintptr_t do_mremap(uintptr_t addr, size_t old_size, size_t new_size, int flags);
+uintptr_t do_brk(uintptr_t addr);
#endif