Home | History | Annotate | Download | only in sys
      1 #include <sys/syscall.h>
      2 #include <asm/unistd.h>
      3 
      4 #ifdef __NR_iopl
      5 static inline int iopl(int level)
      6 {
      7     return syscall(__NR_iopl, level);
      8 }
      9 #endif /* __NR_iopl */
     10 
     11 #ifdef __NR_ioperm
     12 static inline int ioperm(unsigned long from, unsigned long num, int turn_on)
     13 {
     14     return syscall(__NR_ioperm, from, num, turn_on);
     15 }
     16 #endif /* __NR_ioperm */
     17