Update mmap, munmap stubs to match new prototypes.
[pintos-anon] / src / lib / user / syscall.c
index c92c812ed18857c599a54cffb4e42a02d0ab7198..b6120fd154227f9301dd029412c015e2156bf10a 100644 (file)
@@ -1,5 +1,4 @@
 #include <syscall.h>
-#include "syscall-stub.h"
 #include "../syscall-nr.h"
 
 /* Invokes syscall NUMBER, passing no arguments, and returns the
@@ -142,16 +141,16 @@ close (int fd)
   syscall1 (SYS_close, fd);
 }
 
-bool
-mmap (int fd, void *addr, unsigned length)
+mapid_t
+mmap (int fd, void *addr)
 {
-  return syscall3 (SYS_mmap, fd, addr, length);
+  return syscall2 (SYS_mmap, fd, addr);
 }
 
 bool
-munmap (void *addr, unsigned length)
+munmap (mapid_t mapid)
 {
-  return syscall2 (SYS_munmap, addr, length);
+  return syscall1 (SYS_munmap, mapid);
 }
 
 bool