summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/arm/sysdep.h
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2010-07-15 10:18:59 -0700
committerKhem Raj <raj.khem@gmail.com>2010-07-15 10:18:59 -0700
commit48d3643f218a9257f78a5363b4bbbb6edaaabc66 (patch)
tree7712aedf3bf607e5166cb0282e4ce785f1306791 /libc/sysdeps/linux/arm/sysdep.h
parentb6a444a72e587272cdeca6d7148a9249a037df6f (diff)
arm: Macros in sysdeps/linux/arm also needed to be changed to accept _a1 to __a1 renaming.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'libc/sysdeps/linux/arm/sysdep.h')
-rw-r--r--libc/sysdeps/linux/arm/sysdep.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/libc/sysdeps/linux/arm/sysdep.h b/libc/sysdeps/linux/arm/sysdep.h
index b47b5fac5..013f88cdd 100644
--- a/libc/sysdeps/linux/arm/sysdep.h
+++ b/libc/sysdeps/linux/arm/sysdep.h
@@ -275,7 +275,7 @@ __local_syscall_error: \
({ unsigned int _internal_sys_result; \
{ \
int _sys_buf[2]; \
- register int _a1 __asm__ ("a1"); \
+ register int __a1 __asm__ ("a1"); \
register int *_v3 __asm__ ("v3") = _sys_buf; \
LOAD_ARGS_##nr (args) \
*_v3 = (int) (name); \
@@ -283,37 +283,37 @@ __local_syscall_error: \
"\tldr r7, [v3]\n" \
"\tswi 0 @ syscall " #name "\n" \
"\tldr r7, [v3, #4]" \
- : "=r" (_a1) \
+ : "=r" (__a1) \
: "r" (_v3) ASM_ARGS_##nr \
: "memory"); \
- _internal_sys_result = _a1; \
+ _internal_sys_result = __a1; \
} \
(int) _internal_sys_result; })
#elif defined(__ARM_EABI__)
#define INTERNAL_SYSCALL_RAW(name, err, nr, args...) \
({unsigned int _internal_sys_result; \
{ \
- register int _a1 __asm__ ("r0"), _nr __asm__ ("r7"); \
+ register int __a1 __asm__ ("r0"), _nr __asm__ ("r7"); \
LOAD_ARGS_##nr (args) \
_nr = name; \
__asm__ __volatile__ ("swi 0x0 @ syscall " #name \
- : "=r" (_a1) \
+ : "=r" (__a1) \
: "r" (_nr) ASM_ARGS_##nr \
: "memory"); \
- _internal_sys_result = _a1; \
+ _internal_sys_result = __a1; \
} \
(int) _internal_sys_result; })
#else /* !defined(__ARM_EABI__) */
#define INTERNAL_SYSCALL_RAW(name, err, nr, args...) \
({ unsigned int _internal_sys_result; \
{ \
- register int _a1 __asm__ ("a1"); \
+ register int __a1 __asm__ ("a1"); \
LOAD_ARGS_##nr (args) \
__asm__ __volatile__ ("swi %1 @ syscall " #name \
- : "=r" (_a1) \
+ : "=r" (__a1) \
: "i" (name) ASM_ARGS_##nr \
: "memory"); \
- _internal_sys_result = _a1; \
+ _internal_sys_result = __a1; \
} \
(int) _internal_sys_result; })
#endif