patch-2.3.23 linux/arch/arm/kernel/ioport.c
Next file: linux/arch/arm/kernel/irq.c
Previous file: linux/arch/arm/kernel/init_task.c
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
Wed Oct 20 16:29:08 1999
- Orig file:
v2.3.22/linux/arch/arm/kernel/ioport.c
- Orig date:
Tue Aug 31 17:29:12 1999
diff -u --recursive --new-file v2.3.22/linux/arch/arm/kernel/ioport.c linux/arch/arm/kernel/ioport.c
@@ -9,10 +9,12 @@
#include <linux/errno.h>
#include <linux/types.h>
#include <linux/ioport.h>
+#include <linux/mm.h>
#include <asm/pgtable.h>
#include <asm/uaccess.h>
+#ifdef CONFIG_CPU_32
asmlinkage int sys_iopl(unsigned long turn_on)
{
if (turn_on && !capable(CAP_SYS_RAWIO))
@@ -25,3 +27,9 @@
return 0;
}
+#else
+asmlinkage int sys_iopl(unsigned long turn_on)
+{
+ return -ENOSYS;
+}
+#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)