From b0e9654f8621729400ba627ed8c9bd0bf3833f7a Mon Sep 17 00:00:00 2001 From: Daniel Sanchez Date: Tue, 21 Apr 2009 08:17:36 -0700 Subject: Commit m5threads package. This patch adds limited multithreading support in syscall-emulation mode, by using the clone system call. The clone system call works for Alpha, SPARC and x86, and multithreaded applications run correctly in Alpha and SPARC. --- src/arch/alpha/linux/process.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/arch/alpha/linux/process.cc') diff --git a/src/arch/alpha/linux/process.cc b/src/arch/alpha/linux/process.cc index aeff9fbed..9886c7ea7 100644 --- a/src/arch/alpha/linux/process.cc +++ b/src/arch/alpha/linux/process.cc @@ -434,7 +434,7 @@ SyscallDesc AlphaLinuxProcess::syscallDescs[] = { /* 309 */ SyscallDesc("get_kernel_syms", unimplementedFunc), /* 310 */ SyscallDesc("syslog", unimplementedFunc), /* 311 */ SyscallDesc("reboot", unimplementedFunc), - /* 312 */ SyscallDesc("clone", unimplementedFunc), + /* 312 */ SyscallDesc("clone", cloneFunc), /* 313 */ SyscallDesc("uselib", unimplementedFunc), /* 314 */ SyscallDesc("mlock", unimplementedFunc), /* 315 */ SyscallDesc("munlock", unimplementedFunc), @@ -527,7 +527,7 @@ SyscallDesc AlphaLinuxProcess::syscallDescs[] = { /* 402 */ SyscallDesc("io_cancel", unimplementedFunc), /* 403 */ SyscallDesc("unknown #403", unimplementedFunc), /* 404 */ SyscallDesc("unknown #404", unimplementedFunc), - /* 405 */ SyscallDesc("exit_group", exitFunc), // exit all threads... + /* 405 */ SyscallDesc("exit_group", exitGroupFunc), // exit all threads... /* 406 */ SyscallDesc("lookup_dcookie", unimplementedFunc), /* 407 */ SyscallDesc("sys_epoll_create", unimplementedFunc), /* 408 */ SyscallDesc("sys_epoll_ctl", unimplementedFunc), -- cgit v1.2.3