]> git.hungrycats.org Git - linux/commit
[PATCH] ppc32: Fixes to the signal context code
authorAndrew Morton <akpm@osdl.org>
Fri, 23 Jan 2004 00:04:44 +0000 (16:04 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Fri, 23 Jan 2004 00:04:44 +0000 (16:04 -0800)
commit65941fabe35694bae0a68e1ce8a9c5239298e90e
tree0776c161684e90743e4c611193bce97101ffc619
parent91498a9a86448a95429a896db1114ca43fe3ce26
[PATCH] ppc32: Fixes to the signal context code

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>

This patch (which has been in my tree for some time now) does 2 things to
the ppc32 signal code:

- The new sys_swapcontext() syscall that we added recently (and which is
  _not_ yet used by glibc, so it's ok to change it slightly at this point,
  glibc kernel version check will limit us to 2.6.2 or 2.6.3) gets a new
  context size argument, so we can deal with future context size changes.

- When ucontext is get/set/swapped using the above syscall, the TLS (r2)
  is preserved (it's still saved/restored on signal entry & return though).

The equivalent of this patch is already in the ppc64 signal32.c emulation,
and it has no effect until glibc is updated to use the new syscall, which
should happen soon now, so please apply.
arch/ppc/kernel/signal.c