diff options
-rw-r--r-- | arch/x86/include/asm/syscalls.h | 1 | ||||
-rw-r--r-- | arch/x86/kernel/ioport.c | 7 | ||||
-rw-r--r-- | drivers/tty/vt/vt_ioctl.c | 6 |
3 files changed, 10 insertions, 4 deletions
diff --git a/arch/x86/include/asm/syscalls.h b/arch/x86/include/asm/syscalls.h index bad25bb80679..1c0bebbd039e 100644 --- a/arch/x86/include/asm/syscalls.h +++ b/arch/x86/include/asm/syscalls.h | |||
@@ -17,6 +17,7 @@ | |||
17 | 17 | ||
18 | /* Common in X86_32 and X86_64 */ | 18 | /* Common in X86_32 and X86_64 */ |
19 | /* kernel/ioport.c */ | 19 | /* kernel/ioport.c */ |
20 | long ksys_ioperm(unsigned long from, unsigned long num, int turn_on); | ||
20 | asmlinkage long sys_ioperm(unsigned long, unsigned long, int); | 21 | asmlinkage long sys_ioperm(unsigned long, unsigned long, int); |
21 | asmlinkage long sys_iopl(unsigned int); | 22 | asmlinkage long sys_iopl(unsigned int); |
22 | 23 | ||
diff --git a/arch/x86/kernel/ioport.c b/arch/x86/kernel/ioport.c index 38deafebb21b..0fe1c8782208 100644 --- a/arch/x86/kernel/ioport.c +++ b/arch/x86/kernel/ioport.c | |||
@@ -23,7 +23,7 @@ | |||
23 | /* | 23 | /* |
24 | * this changes the io permissions bitmap in the current task. | 24 | * this changes the io permissions bitmap in the current task. |
25 | */ | 25 | */ |
26 | SYSCALL_DEFINE3(ioperm, unsigned long, from, unsigned long, num, int, turn_on) | 26 | long ksys_ioperm(unsigned long from, unsigned long num, int turn_on) |
27 | { | 27 | { |
28 | struct thread_struct *t = ¤t->thread; | 28 | struct thread_struct *t = ¤t->thread; |
29 | struct tss_struct *tss; | 29 | struct tss_struct *tss; |
@@ -96,6 +96,11 @@ SYSCALL_DEFINE3(ioperm, unsigned long, from, unsigned long, num, int, turn_on) | |||
96 | return 0; | 96 | return 0; |
97 | } | 97 | } |
98 | 98 | ||
99 | SYSCALL_DEFINE3(ioperm, unsigned long, from, unsigned long, num, int, turn_on) | ||
100 | { | ||
101 | return ksys_ioperm(from, num, turn_on); | ||
102 | } | ||
103 | |||
99 | /* | 104 | /* |
100 | * sys_iopl has to be used when you want to access the IO ports | 105 | * sys_iopl has to be used when you want to access the IO ports |
101 | * beyond the 0x3ff range: to get the full 65536 ports bitmapped | 106 | * beyond the 0x3ff range: to get the full 65536 ports bitmapped |
diff --git a/drivers/tty/vt/vt_ioctl.c b/drivers/tty/vt/vt_ioctl.c index d61be307256a..a78ad10a119b 100644 --- a/drivers/tty/vt/vt_ioctl.c +++ b/drivers/tty/vt/vt_ioctl.c | |||
@@ -57,7 +57,7 @@ extern struct tty_driver *console_driver; | |||
57 | */ | 57 | */ |
58 | 58 | ||
59 | #ifdef CONFIG_X86 | 59 | #ifdef CONFIG_X86 |
60 | #include <linux/syscalls.h> | 60 | #include <asm/syscalls.h> |
61 | #endif | 61 | #endif |
62 | 62 | ||
63 | static void complete_change_console(struct vc_data *vc); | 63 | static void complete_change_console(struct vc_data *vc); |
@@ -420,12 +420,12 @@ int vt_ioctl(struct tty_struct *tty, | |||
420 | ret = -EINVAL; | 420 | ret = -EINVAL; |
421 | break; | 421 | break; |
422 | } | 422 | } |
423 | ret = sys_ioperm(arg, 1, (cmd == KDADDIO)) ? -ENXIO : 0; | 423 | ret = ksys_ioperm(arg, 1, (cmd == KDADDIO)) ? -ENXIO : 0; |
424 | break; | 424 | break; |
425 | 425 | ||
426 | case KDENABIO: | 426 | case KDENABIO: |
427 | case KDDISABIO: | 427 | case KDDISABIO: |
428 | ret = sys_ioperm(GPFIRST, GPNUM, | 428 | ret = ksys_ioperm(GPFIRST, GPNUM, |
429 | (cmd == KDENABIO)) ? -ENXIO : 0; | 429 | (cmd == KDENABIO)) ? -ENXIO : 0; |
430 | break; | 430 | break; |
431 | #endif | 431 | #endif |