kernel-ark/arch/s390/kernel
Bodo Stroesser c5c3a6d8fe [PATCH] s390: uml ptrace fixes
To make UML build and run on s390, I needed to do these two little
changes:

1) UML includes some of the subarch's (s390) headers. I had to
   change one of them with the following one-liner, to make this
   compile. AFAICS, this change doesn't break compilation of s390
   itself.

2) UML needs to intercept syscalls via ptrace to invalidate the syscall,
   read syscall's parameters and write the result with the result of
   UML's syscall processing. Also, UML needs to make sure, that the host
   does no syscall restart processing. On i386 for example, this can be
   done by writing -1 to orig_eax on the 2nd syscall interception
   (orig_eax is the syscall number, which after the interception is used
   as a "interrupt was a syscall" flag only.
   Unfortunately, s390 holds syscall number and syscall result in gpr2 and
   its "interrupt was a syscall" flag (trap) is unreachable via ptrace.
   So I changed the host to set trap to -1, if the syscall number is changed
   to an invalid value on the first syscall interception.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-06-04 17:13:00 -07:00
..
asm-offsets.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
binfmt_elf32.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
bitmap.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
compat_exec_domain.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
compat_ioctl.c [PATCH] s390: remove ioctl32 from dasdcmb 2005-05-01 08:58:59 -07:00
compat_linux.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
compat_linux.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
compat_ptrace.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
compat_signal.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
compat_wrapper.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
cpcmd.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
debug.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ebcdic.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
entry64.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
entry.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
head64.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
head.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
init_task.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
irq.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
module.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
process.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
profile.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ptrace.c [PATCH] s390: uml ptrace fixes 2005-06-04 17:13:00 -07:00
reipl64.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
reipl.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
s390_ext.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
s390_ksyms.c [PATCH] s390: default storage key 2005-05-01 08:58:58 -07:00
semaphore.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
setup.c [PATCH] s390: default storage key 2005-05-01 08:58:58 -07:00
signal.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
smp.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sys_s390.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
syscalls.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
time.c [PATCH] s390: idle timer setup 2005-05-01 08:58:57 -07:00
traps.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
vmlinux.lds.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
vtime.c [PATCH] s390: idle timer setup 2005-05-01 08:58:57 -07:00