2 * linux/arch/arm/kernel/ioport.c
4 * IO permission support for ARM.
7 #include <linux/config.h>
8 #include <linux/sched.h>
9 #include <linux/kernel.h>
10 #include <linux/errno.h>
11 #include <linux/types.h>
12 #include <linux/ioport.h>
15 #include <asm/pgtable.h>
16 #include <asm/uaccess.h>
19 asmlinkage
int sys_iopl(unsigned long turn_on
)
21 if (turn_on
&& !capable(CAP_SYS_RAWIO
))
25 * We only support an on_off approach
27 modify_domain(DOMAIN_IO
, turn_on
? DOMAIN_MANAGER
: DOMAIN_CLIENT
);
32 asmlinkage
int sys_iopl(unsigned long turn_on
)