[git commit branch/0.9.33] Revert "Fix redefinition of ioperm and iopl in stubs.c and arm/{ioperm.c, iopl.c}"

Mike Frysinger vapier at gentoo.org
Tue Mar 27 02:36:24 UTC 2012


commit: http://git.uclibc.org/uClibc/commit/?id=72e19c47f6edb22b6187a714c29f46a01824b2a0
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/0.9.33

This reverts commit 3bcd031f97d61a8f732d865a0f4248aed2d191ab.

The arm code is supposed to provide its own userspace ioperm/iopl
functions.  They've never had system calls for these funcs.

Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
 libc/sysdeps/linux/arm/ioperm.c |    4 ----
 libc/sysdeps/linux/arm/iopl.c   |    4 ----
 2 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/libc/sysdeps/linux/arm/ioperm.c b/libc/sysdeps/linux/arm/ioperm.c
index 0e283cb..a7f6c306 100644
--- a/libc/sysdeps/linux/arm/ioperm.c
+++ b/libc/sysdeps/linux/arm/ioperm.c
@@ -50,8 +50,6 @@
 
 #include <linux/version.h>
 
-#ifdef __NR_ioperm
-
 #define PATH_ARM_SYSTYPE	"/etc/arm_systype"
 #define PATH_CPUINFO		"/proc/cpuinfo"
 
@@ -246,5 +244,3 @@ inl(unsigned long int port)
 {
     return *((__volatile__ unsigned long *)(IO_ADDR (port)));
 }
-
-#endif
diff --git a/libc/sysdeps/linux/arm/iopl.c b/libc/sysdeps/linux/arm/iopl.c
index f3d42ed..df953d3 100644
--- a/libc/sysdeps/linux/arm/iopl.c
+++ b/libc/sysdeps/linux/arm/iopl.c
@@ -22,8 +22,6 @@
 #include <errno.h>
 
 
-#ifdef __NR_iopl
-
 #define MAX_PORT	0x10000
 
 int iopl(int level)
@@ -36,5 +34,3 @@ int iopl(int level)
 		return ioperm(0, MAX_PORT, 1);
 	return 0;
 }
-
-#endif


More information about the uClibc-cvs mailing list