1 /* 2 * linux/arch/mips/kernel/ioport.c 3 */ 4 #include <linux/sched.h>
5 #include <linux/kernel.h>
6 #include <linux/errno.h>
7 #include <linux/types.h>
8 #include <linux/ioport.h>
9
10 /* 11 * This changes the io permissions bitmap in the current task. 12 */ 13 asmlinkageintsys_ioperm(unsignedlongfrom, unsignedlongnum, intturn_on)
/* */ 14 { 15 return -ENOSYS;
16 } 17
18 unsignedint *stack;
19
20 /* 21 * sys_iopl has to be used when you want to access the IO ports 22 * beyond the 0x3ff range: to get the full 65536 ports bitmapped 23 * you'd need 8kB of bitmaps/process, which is a bit excessive. 24 * 25 * Here we just change the eflags value on the stack: we allow 26 * only the super-user to do it. This depends on the stack-layout 27 * on system-call entry - see also fork() and the signal handling 28 * code. 29 */ 30 asmlinkageintsys_iopl(longebx,longecx,longedx,
/* */ 31 longesi, longedi, longebp, longeax, longds,
32 longes, longfs, longgs, longorig_eax,
33 longeip,longcs,longeflags,longesp,longss)
34 { 35 return -ENOSYS;
36 }