Re: [PATCH x86/mm 08/11] x86 ia32 ptrace getreg/putreg merge

2007-11-29 Thread Ingo Molnar
* H. Peter Anvin <[EMAIL PROTECTED]> wrote: > Christoph Hellwig wrote: >> On Thu, Nov 29, 2007 at 04:00:31AM -0800, Roland McGrath wrote: >>> +#define R32(l,q) \ >>> + case offsetof(struct user32, regs.l): \ >>> +

Re: [PATCH x86/mm 08/11] x86 ia32 ptrace getreg/putreg merge

2007-11-29 Thread H. Peter Anvin
Christoph Hellwig wrote: On Thu, Nov 29, 2007 at 04:00:31AM -0800, Roland McGrath wrote: +#define R32(l,q) \ + case offsetof(struct user32, regs.l): \ + regs->q = value; break + +#define SEG32(rs)

Re: [PATCH x86/mm 08/11] x86 ia32 ptrace getreg/putreg merge

2007-11-29 Thread Christoph Hellwig
On Thu, Nov 29, 2007 at 04:00:31AM -0800, Roland McGrath wrote: > +#define R32(l,q) \ > + case offsetof(struct user32, regs.l): \ > + regs->q = value; break > + > +#define SEG32(rs)

[PATCH x86/mm 08/11] x86 ia32 ptrace getreg/putreg merge

2007-11-29 Thread Roland McGrath
This reimplements the 64-bit IA32-emulation register access functions in arch/x86/kernel/ptrace.c, where they can share some guts with the native access functions directly. These functions are not used yet, but this paves the way to move IA32 ptrace support into this file to share its local funct