x86/entry/vm86: Move userspace accesses to do_sys_vm86()
authorBrian Gerst <brgerst@gmail.com>
Mon, 20 Jul 2015 01:09:06 +0000 (21:09 -0400)
committerIngo Molnar <mingo@kernel.org>
Tue, 21 Jul 2015 07:12:24 +0000 (09:12 +0200)
commited0b2edb61ba4e557de759093d965654186f28b2
tree70bad0297c5626a3d2e4fc811921697d057affbe
parentdf1ae9a5dc66d9fd57109240042372b1065d984a
x86/entry/vm86: Move userspace accesses to do_sys_vm86()

Move the userspace accesses down into the common function in
preparation for the next set of patches.  Also change to copying
the fields explicitly instead of assuming a fixed order in
pt_regs and the kernel data structures.

Signed-off-by: Brian Gerst <brgerst@gmail.com>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1437354550-25858-4-git-send-email-brgerst@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/processor.h
arch/x86/kernel/vm86_32.c