You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
345 B
17 lines
345 B
#include <sys/syscall.h>
|
|
#include <asm/unistd.h>
|
|
|
|
#ifdef __NR_iopl
|
|
static inline int iopl(int level)
|
|
{
|
|
return syscall(__NR_iopl, level);
|
|
}
|
|
#endif /* __NR_iopl */
|
|
|
|
#ifdef __NR_ioperm
|
|
static inline int ioperm(unsigned long from, unsigned long num, int turn_on)
|
|
{
|
|
return syscall(__NR_ioperm, from, num, turn_on);
|
|
}
|
|
#endif /* __NR_ioperm */
|