uml: tidy ptrace interface

Tidy the ptrace interface code.  Removed a bunch of unused macros.
Started converting register sets from arrays of longs to structures.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Cc: WANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Esse commit está contido em:
Jeff Dike
2008-05-12 14:01:50 -07:00
commit de Linus Torvalds
commit 47906dd9e6
6 arquivos alterados com 23 adições e 62 exclusões

Ver arquivo

@@ -5,6 +5,7 @@
*/
#include <errno.h>
#include <asm/user.h>
#include "kern_constants.h"
#include "longjmp.h"
#include "user.h"
@@ -74,10 +75,10 @@ int put_fp_registers(int pid, unsigned long *regs)
void arch_init_registers(int pid)
{
unsigned long fpx_regs[HOST_XFP_SIZE];
struct user_fxsr_struct fpx_regs;
int err;
err = ptrace(PTRACE_GETFPXREGS, pid, 0, fpx_regs);
err = ptrace(PTRACE_GETFPXREGS, pid, 0, &fpx_regs);
if (!err)
return;