aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-09-22 05:11:15 +0000
committerUlrich Drepper <drepper@redhat.com>2004-09-22 05:11:15 +0000
commit4ff389feb39f2eb649530b843d478c80c27ab4cf (patch)
tree1ffd93397f6187c0a8f63acc53e4a181cded384f /sysdeps
parenta2d231e51f2df897854ef1cf5a4f95ed7c4dc0cf (diff)
downloadglibc-4ff389feb39f2eb649530b843d478c80c27ab4cf.zip
glibc-4ff389feb39f2eb649530b843d478c80c27ab4cf.tar.gz
glibc-4ff389feb39f2eb649530b843d478c80c27ab4cf.tar.bz2
2004-09-20 H.J. Lu <hongjiu.lu@intel.com> * sysdeps/unix/sysv/linux/ia64/sysdep.h (DO_INLINE_SYSCALL): Renamed to ... (DO_INLINE_SYSCALL_NCS): This. (DO_INLINE_SYSCALL): New. (INLINE_SYSCALL): Updated. (INTERNAL_SYSCALL_NCS): Updated.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/sysv/linux/ia64/sysdep.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/sysdeps/unix/sysv/linux/ia64/sysdep.h b/sysdeps/unix/sysv/linux/ia64/sysdep.h
index 0ebfc56..0347641 100644
--- a/sysdeps/unix/sysv/linux/ia64/sysdep.h
+++ b/sysdeps/unix/sysv/linux/ia64/sysdep.h
@@ -199,7 +199,7 @@
#ifdef IA64_USE_NEW_STUB
-# define DO_INLINE_SYSCALL(name, nr, args...) \
+# define DO_INLINE_SYSCALL_NCS(name, nr, args...) \
LOAD_ARGS_##nr (args) \
register long _r8 __asm ("r8"); \
register long _r10 __asm ("r10"); \
@@ -221,7 +221,7 @@
#else /* !IA64_USE_NEW_STUB */
-# define DO_INLINE_SYSCALL(name, nr, args...) \
+# define DO_INLINE_SYSCALL_NCS(name, nr, args...) \
LOAD_ARGS_##nr (args) \
register long _r8 asm ("r8"); \
register long _r10 asm ("r10"); \
@@ -237,10 +237,13 @@
#endif /* !IA64_USE_NEW_STUB */
+#define DO_INLINE_SYSCALL(name, nr, args...) \
+ DO_INLINE_SYSCALL_NCS (__NR_##name, nr, ##args)
+
#undef INLINE_SYSCALL
#define INLINE_SYSCALL(name, nr, args...) \
({ \
- DO_INLINE_SYSCALL(__NR_##name, nr, args) \
+ DO_INLINE_SYSCALL_NCS(__NR_##name, nr, args)\
if (_r10 == -1) \
{ \
__set_errno (_retval); \
@@ -254,7 +257,7 @@
#undef INTERNAL_SYSCALL
#define INTERNAL_SYSCALL_NCS(name, err, nr, args...) \
({ \
- DO_INLINE_SYSCALL(name, nr, args) \
+ DO_INLINE_SYSCALL_NCS(name, nr, args) \
err = _r10; \
_retval; })
#define INTERNAL_SYSCALL(name, err, nr, args...) \