A few parisc-specific updates for trinity: - Update PTRACE_XXXREGS constants which are now available on parisc - Add more syscalls - MS_ASYNC, MS_SYNC and MS_INVALIDATE can have different values than x86_64 on alpha, parisc, xtensa and other platforms Signed-off-by: Helge Deller <deller@xxxxxx> diff --git a/include/arch-parisc.h b/include/arch-parisc.h index 6f47ae8f..f3315e21 100644 --- a/include/arch-parisc.h +++ b/include/arch-parisc.h @@ -16,9 +16,9 @@ #define PAGE_SHIFT 12 #define PTE_FILE_MAX_BITS (32 - 11) -#define PTRACE_GETREGS 0 -#define PTRACE_GETFPREGS 0 -#define PTRACE_SETREGS 0 -#define PTRACE_SETFPREGS 0 +#define PTRACE_GETREGS 18 +#define PTRACE_GETFPREGS 14 +#define PTRACE_SETREGS 19 +#define PTRACE_SETFPREGS 15 #define SYSCALLS syscalls_parisc diff --git a/include/syscalls-parisc.h b/include/syscalls-parisc.h index 2ac2d5f9..8365d6ae 100644 --- a/include/syscalls-parisc.h +++ b/include/syscalls-parisc.h @@ -354,4 +354,11 @@ struct syscalltable syscalls_parisc[] = { { .entry = NULL }, #endif { .entry = &syscall_execveat }, + { .entry = &syscall_membarrier }, + { .entry = &syscall_userfaultfd }, + { .entry = &syscall_mlock2 }, + { .entry = &syscall_copy_file_range }, + { .entry = &syscall_preadv2 }, + { .entry = &syscall_pwritev2 }, + { .entry = &syscall_statx }, }; diff --git a/syscalls/msync.c b/syscalls/msync.c index 95fbb06f..8f879dee 100644 --- a/syscalls/msync.c +++ b/syscalls/msync.c @@ -8,9 +8,15 @@ #include "syscall.h" #include "trinity.h" +#if !defined(MS_ASYNC) #define MS_ASYNC 1 /* Sync memory asynchronously. */ +#endif +#if !defined(MS_SYNC) #define MS_SYNC 4 /* Synchronous memory sync. */ +#endif +#if !defined(MS_INVALIDATE) #define MS_INVALIDATE 2 /* Invalidate the caches. */ +#endif static void sanitise_msync(struct syscallrecord *rec) { -- To unsubscribe from this list: send the line "unsubscribe trinity" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html