From: Julian Seward Date: Fri, 19 Aug 2005 10:07:29 +0000 (+0000) Subject: Enable a few more syscalls on ppc32-linux. X-Git-Tag: svn/VALGRIND_3_1_0~561 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b42cf14c305fd1a3e868717a962abc17dce26b94;p=thirdparty%2Fvalgrind.git Enable a few more syscalls on ppc32-linux. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4463 --- diff --git a/coregrind/m_syswrap/syswrap-generic.c b/coregrind/m_syswrap/syswrap-generic.c index b8045b9e4f..80ae123bd9 100644 --- a/coregrind/m_syswrap/syswrap-generic.c +++ b/coregrind/m_syswrap/syswrap-generic.c @@ -5409,7 +5409,7 @@ POST(sys_rt_sigaction) // XXX: This syscall is not used on amd64 -- it only provides // sys_rt_sigprocmask, which uses sigset_t rather than old_sigset_t. // This wrapper is only suitable for 32-bit architectures. -#if defined(VGP_x86_linux) +#if defined(VGP_x86_linux) || defined(VGP_ppc32_linux) PRE(sys_sigprocmask) { vki_old_sigset_t* set; diff --git a/coregrind/m_syswrap/syswrap-ppc32-linux.c b/coregrind/m_syswrap/syswrap-ppc32-linux.c index a3702dce2d..e53ab8b6ef 100644 --- a/coregrind/m_syswrap/syswrap-ppc32-linux.c +++ b/coregrind/m_syswrap/syswrap-ppc32-linux.c @@ -1990,7 +1990,7 @@ const SyscallTableEntry ML_(syscall_table)[] = { //.. //.. // (__NR_stime, sys_stime), // 25 * (SVr4,SVID,X/OPEN) //.. PLAXY(__NR_ptrace, sys_ptrace), // 26 -//.. GENX_(__NR_alarm, sys_alarm), // 27 + GENX_(__NR_alarm, sys_alarm), // 27 //.. // (__NR_oldfstat, sys_fstat), // 28 * L -- obsolete GENX_(__NR_pause, sys_pause), // 29 //.. @@ -2109,7 +2109,7 @@ const SyscallTableEntry ML_(syscall_table)[] = { //.. LINXY(__NR_adjtimex, sys_adjtimex), // 124 //.. GENXY(__NR_mprotect, sys_mprotect), // 125 -//.. GENXY(__NR_sigprocmask, sys_sigprocmask), // 126 + GENXY(__NR_sigprocmask, sys_sigprocmask), // 126 //.. // Nb: create_module() was removed 2.4-->2.6 //.. GENX_(__NR_create_module, sys_ni_syscall), // 127 //.. GENX_(__NR_init_module, sys_init_module), // 128 @@ -2183,7 +2183,7 @@ const SyscallTableEntry ML_(syscall_table)[] = { //.. GENXY(__NR_capget, sys_capget), // 183 //.. //.. GENX_(__NR_capset, sys_capset), // 184 -//.. GENXY(__NR_sigaltstack, sys_sigaltstack), // 185 + GENXY(__NR_sigaltstack, sys_sigaltstack), // 185 //.. LINXY(__NR_sendfile, sys_sendfile), // 186 //.. GENXY(__NR_getpmsg, sys_getpmsg), // 187 //.. GENX_(__NR_putpmsg, sys_putpmsg), // 188 @@ -2211,7 +2211,7 @@ const SyscallTableEntry ML_(syscall_table)[] = { GENXY(__NR_fcntl64, sys_fcntl64), // 204 //.. GENX_(__NR_madvise, sys_madvise), // 205 //.. GENXY(__NR_mincore, sys_mincore), // 206 -//.. LINX_(__NR_gettid, sys_gettid), // 207 + LINX_(__NR_gettid, sys_gettid), // 207 //.. LINX_(__NR_tkill, sys_tkill), // 208 */Linux //.. GENX_(__NR_setxattr, sys_setxattr), // 209 //.. GENX_(__NR_lsetxattr, sys_lsetxattr), // 210 diff --git a/coregrind/vki_unistd-ppc32-linux.h b/coregrind/vki_unistd-ppc32-linux.h index 3c8bfa0d34..3bb00bca30 100644 --- a/coregrind/vki_unistd-ppc32-linux.h +++ b/coregrind/vki_unistd-ppc32-linux.h @@ -56,7 +56,7 @@ #define __NR_getuid 24 //#define __NR_stime 25 //#define __NR_ptrace 26 -//#define __NR_alarm 27 +#define __NR_alarm 27 //#define __NR_oldfstat 28 #define __NR_pause 29 #define __NR_utime 30