diff --git a/driver/ppm.h b/driver/ppm.h index 6c3931f937..b9cd626db6 100644 --- a/driver/ppm.h +++ b/driver/ppm.h @@ -124,7 +124,6 @@ long ppm_strncpy_from_user(char *to, const char __user *from, unsigned long n); #define SYSCALL_TABLE_ID0 0 #elif defined CONFIG_S390 #define SYSCALL_TABLE_ID0 0 - #define __NR_time 13 #endif #define SYSCALL_TABLE_SIZE 512 diff --git a/driver/ppm_fillers.c b/driver/ppm_fillers.c index ef673c718d..1b81c6944c 100644 --- a/driver/ppm_fillers.c +++ b/driver/ppm_fillers.c @@ -3890,14 +3890,22 @@ static inline u16 ptrace_requests_to_scap(unsigned long req) case PTRACE_GETFPXREGS: return PPM_PTRACE_GETFPXREGS; #endif +#ifdef PTRACE_SETFPREGS case PTRACE_SETFPREGS: return PPM_PTRACE_SETFPREGS; +#endif +#ifdef PTRACE_GETFPREGS case PTRACE_GETFPREGS: return PPM_PTRACE_GETFPREGS; +#endif +#ifdef PTRACE_SETREGS case PTRACE_SETREGS: return PPM_PTRACE_SETREGS; +#endif +#ifdef PTRACE_GETREGS case PTRACE_GETREGS: return PPM_PTRACE_GETREGS; +#endif #ifdef PTRACE_SETSIGMASK case PTRACE_SETSIGMASK: return PPM_PTRACE_SETSIGMASK; diff --git a/driver/syscall_table.c b/driver/syscall_table.c index d354fed0f8..7231c7f62a 100644 --- a/driver/syscall_table.c +++ b/driver/syscall_table.c @@ -288,7 +288,9 @@ const enum ppm_syscall_code g_syscall_code_routing_table[SYSCALL_TABLE_SIZE] = { [__NR_link - SYSCALL_TABLE_ID0] = PPM_SC_LINK, [__NR_unlink - SYSCALL_TABLE_ID0] = PPM_SC_UNLINK, [__NR_chdir - SYSCALL_TABLE_ID0] = PPM_SC_CHDIR, +#ifdef __NR_time [__NR_time - SYSCALL_TABLE_ID0] = PPM_SC_TIME, +#endif [__NR_mknod - SYSCALL_TABLE_ID0] = PPM_SC_MKNOD, [__NR_chmod - SYSCALL_TABLE_ID0] = PPM_SC_CHMOD, /* [__NR_lchown16 - SYSCALL_TABLE_ID0] = PPM_SC_NR_LCHOWN16, */