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@gentoo.org>
#include <linux/version.h>
-#ifdef __NR_ioperm
-
#define PATH_ARM_SYSTYPE "/etc/arm_systype"
#define PATH_CPUINFO "/proc/cpuinfo"
{
return *((__volatile__ unsigned long *)(IO_ADDR (port)));
}
-
-#endif
#include <errno.h>
-#ifdef __NR_iopl
-
#define MAX_PORT 0x10000
int iopl(int level)
return ioperm(0, MAX_PORT, 1);
return 0;
}
-
-#endif