Re: [PATCH] x86: pass in pt_regs pointer for syscalls that need it(take 2)

From: H. Peter Anvin
Date: Wed Feb 11 2009 - 17:07:31 EST


Brian Gerst wrote:
Some syscalls need to access the pt_regs structure, either to copy
user register state or to modifiy it. This patch adds stubs to load
the address of the pt_regs struct into the %eax register, and changes
the syscalls to take the pointer as an argument instead of relying on
the assumption that the pt_regs structure overlaps the function
arguments.

Signed-off-by: Brian Gerst <brgerst@xxxxxxxxx>

Testing this now, together with the do_rt_sigreturn -> sys_rt_sigreturn change. If it works okay I'll commit it as an incremental diff to tip:core/percpu.

-hpa
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/