x86: use pt_regs pointer in do_device_not_available()
authorBrian Gerst <brgerst@gmail.com>
Tue, 10 Feb 2009 14:51:45 +0000 (09:51 -0500)
committerIngo Molnar <mingo@elte.hu>
Wed, 11 Feb 2009 11:40:44 +0000 (12:40 +0100)
commitaa78bcfa01dec3cdbde3cda098ce32abbd9c3bf6
tree5d2e32593345401ffc875060a5368fea63aea6de
parentebd9026d9f8499abc60d82d949bd37f88fe34a41
x86: use pt_regs pointer in do_device_not_available()

The generic exception handler (error_code) passes in the pt_regs
pointer and the error code (unused in this case).  The commit
"x86: fix math_emu register frame access" changed this to pass by
value, which doesn't work correctly with stack protector enabled.
Change it back to use the pt_regs pointer.

Signed-off-by: Brian Gerst <brgerst@gmail.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/traps.h
arch/x86/kernel/traps.c