Add functions for mmap and brk.
authorGabe Black <gblack@eecs.umich.edu>
Fri, 27 Jul 2007 05:04:33 +0000 (22:04 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Fri, 27 Jul 2007 05:04:33 +0000 (22:04 -0700)
--HG--
extra : convert_revision : 3d0340a2aae87b3462d6562b34ac7e02c685c1ef

src/arch/x86/linux/syscalls.cc

index 30cfea49d51e3d9fd0b910cef2a5b62d1baddea2..5c756ec7f467b0614a4eca42ae2d403bcb1f6211 100644 (file)
@@ -90,10 +90,10 @@ SyscallDesc X86LinuxProcess::syscallDescs[] = {
     /*   6 */ SyscallDesc("lstat", unimplementedFunc),
     /*   7 */ SyscallDesc("poll", unimplementedFunc),
     /*   8 */ SyscallDesc("lseek", unimplementedFunc),
-    /*   9 */ SyscallDesc("mmap", unimplementedFunc),
+    /*   9 */ SyscallDesc("mmap", mmapFunc<X86Linux64>),
     /*  10 */ SyscallDesc("mprotect", unimplementedFunc),
     /*  11 */ SyscallDesc("munmap", unimplementedFunc),
-    /*  12 */ SyscallDesc("brk", unimplementedFunc),
+    /*  12 */ SyscallDesc("brk", obreakFunc),
     /*  13 */ SyscallDesc("rt_sigaction", unimplementedFunc),
     /*  14 */ SyscallDesc("rt_sigprocmask", unimplementedFunc),
     /*  15 */ SyscallDesc("rt_sigreturn", unimplementedFunc),