ARM: Implement the getrusage syscall.
authorAli Saidi <Ali.Saidi@ARM.com>
Wed, 2 Jun 2010 17:58:17 +0000 (12:58 -0500)
committerAli Saidi <Ali.Saidi@ARM.com>
Wed, 2 Jun 2010 17:58:17 +0000 (12:58 -0500)
src/arch/arm/linux/process.cc

index 7a5e9da56672a0a645bc30399f69693e60efc29e..a5779d307ba392eb3da472555ccf11befa953fc2 100644 (file)
@@ -141,7 +141,7 @@ SyscallDesc ArmLinuxProcess::syscallDescs[] = {
     /* 74 */ SyscallDesc("sethostname", ignoreFunc),
     /* 75 */ SyscallDesc("setrlimit", unimplementedFunc),
     /* 76 */ SyscallDesc("getrlimit", unimplementedFunc),
-    /* 77 */ SyscallDesc("getrusage", unimplementedFunc),
+    /* 77 */ SyscallDesc("getrusage", getrusageFunc<ArmLinux>),
     /* 78 */ SyscallDesc("gettimeofday", unimplementedFunc),
     /* 79 */ SyscallDesc("settimeofday", unimplementedFunc),
     /* 80 */ SyscallDesc("getgroups", unimplementedFunc),