]> err.no Git - linux-2.6/commit
[PATCH] uml: S390 preparation, peekusr/pokeusr defined by subarch
authorBodo Stroesser <bstroesser@fujitsu-siemens.com>
Sat, 7 May 2005 04:30:46 +0000 (21:30 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 7 May 2005 05:09:29 +0000 (22:09 -0700)
commit82c1c11bdd92d94f8fd620a3ea6c894eba37d4ed
treebc2ac7e025e250678261695a19e171f2991746c6
parent16c11163019879c0e1e69d3ec7d4574a80e9c77e
[PATCH] uml: S390 preparation, peekusr/pokeusr defined by subarch

s390 needs to change some parts of arch/um/kernel/ptrace.c.  Thus, the code
regarding PEEKUSER and POKEUSER are shifted to arch/um/sys-<subarch>/ptrace.c.

Also s390 debug registers need to be updated, when singlestepping is switched
on / off.  Thus, setting/resetting of singlestepping is centralized in the new
function set_singlestep(), which also inserts the macro
SUBARCH_SET_SINGLESTEP(mode), if defined.

Finally, s390 has the "ieee_instruction_pointer" in its
registers, which also is allowed to be read via

  ptrace( PTRACE_PEEKUSER, getpid(), PT_IEEE_IP, 0);

To implement this feature, sys_ptrace inserts the macro
SUBARCH_PTRACE_SPECIAL, if defined.

Signed-off-by: Bodo Stroesser <bstroesser@fujitsu-siemens.com>
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/um/kernel/ptrace.c
arch/um/sys-i386/ptrace.c
arch/um/sys-ppc/ptrace.c
arch/um/sys-x86_64/ptrace.c