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

From: Ingo Molnar
Date: Thu Feb 12 2009 - 06:03:33 EST



* H. Peter Anvin <hpa@xxxxxxxxx> wrote:

> 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.

FYI, i merged the delta commit you applied to tip:master as well - it's all
looking good in testing so far.

Ingo
--
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/