diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-11-20 04:00:52 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-02-04 00:16:24 +0100 |
commit | b3af11afe06abdcf980b5f5c0b44dc46c496ddc3 (patch) | |
tree | 3f784880fd8f14734dd3fd19a5a5a3757df0d44c /arch/x86/kernel/ioport.c | |
parent | amd64: get rid of useless RESTORE_TOP_OF_STACK in stub_execve() (diff) | |
download | linux-b3af11afe06abdcf980b5f5c0b44dc46c496ddc3.tar.xz linux-b3af11afe06abdcf980b5f5c0b44dc46c496ddc3.zip |
x86: get rid of pt_regs argument of iopl(2)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/x86/kernel/ioport.c')
-rw-r--r-- | arch/x86/kernel/ioport.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kernel/ioport.c b/arch/x86/kernel/ioport.c index 8c968974253d..4ddaf66ea35f 100644 --- a/arch/x86/kernel/ioport.c +++ b/arch/x86/kernel/ioport.c @@ -93,8 +93,9 @@ asmlinkage long sys_ioperm(unsigned long from, unsigned long num, int turn_on) * on system-call entry - see also fork() and the signal handling * code. */ -long sys_iopl(unsigned int level, struct pt_regs *regs) +SYSCALL_DEFINE1(iopl, unsigned int, level) { + struct pt_regs *regs = current_pt_regs(); unsigned int old = (regs->flags >> 12) & 3; struct thread_struct *t = ¤t->thread; |