aboutsummaryrefslogtreecommitdiffstats
path: root/linux
diff options
context:
space:
mode:
Diffstat (limited to 'linux')
-rw-r--r--linux/os.h6
1 files changed, 6 insertions, 0 deletions
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