[PATCH] i386/bits/syscalls.h: let *_NCS allow non-constant syscalls

Natanael Copa natanael.copa at gmail.com
Fri Apr 9 13:08:37 UTC 2010


Fixes NPTL build on x86.
---
 libc/sysdeps/linux/i386/bits/syscalls.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libc/sysdeps/linux/i386/bits/syscalls.h b/libc/sysdeps/linux/i386/bits/syscalls.h
index 0427d91..9184bd6 100644
--- a/libc/sysdeps/linux/i386/bits/syscalls.h
+++ b/libc/sysdeps/linux/i386/bits/syscalls.h
@@ -23,7 +23,7 @@
 		"int	$0x80\n\t"                              \
 		RESTOREARGS_##nr                                \
 		: "=a" (resultvar)                              \
-		: "i" (name) ASMFMT_##nr(args) : "memory", "cc" \
+		: "g" (name) ASMFMT_##nr(args) : "memory", "cc" \
 	); \
 	(int) resultvar; \
 })
-- 
1.7.0.4



More information about the uClibc mailing list