From f61fda368da04a569e10c9928c01cfdca0faff7e Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 24 Jun 2023 17:15:21 +0200 Subject: Argument 3 and 4 are swapped on SPARC for PTRACE_GETREGS and PTRACE_SETREGS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- linux/os.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'linux') diff --git a/linux/os.h b/linux/os.h index db22f10..c89f602 100644 --- a/linux/os.h +++ b/linux/os.h @@ -30,3 +30,9 @@ #else # error "This program is only implemented for x86-64 on Linux" #endif + +#if defined(__sparc__) +# define REGARGS(a, b) b, a +#else +# define REGARGS(a, b) a, b +#endif -- cgit v1.2.3-70-g09d2