summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/arc/asm.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/arc/asm.h')
-rw-r--r--libc/sysdeps/linux/arc/asm.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/arc/asm.h b/libc/sysdeps/linux/arc/asm.h
index f98eb239f..f15dff841 100644
--- a/libc/sysdeps/linux/arc/asm.h
+++ b/libc/sysdeps/linux/arc/asm.h
@@ -7,6 +7,29 @@
#ifndef _ARC_ASM_H
#define _ARC_ASM_H
+#if defined (__ARC64_ARCH32__)
+
+.macro PUSHR reg
+ push \reg
+.endm
+
+.macro PUSHR_S reg
+ push \reg
+.endm
+
+.macro POPR reg
+ pop \reg
+.endm
+
+.macro POPR_S reg
+ pop \reg
+.endm
+
+#elif defined (__ARC64_ARCH64__)
+
+# error ARCv3 64-bit is not supported by uClibc-ng
+
+#else /* ARCHS || ARC700 */
.macro PUSHR reg
push \reg
@@ -24,5 +47,6 @@
pop_s \reg
.endm
+#endif
#endif /* _ARC_ASM_H */