]> git.baikalelectronics.ru Git - kernel.git/commit
arch/tile: Change struct sigcontext to be more useful
authorChris Metcalf <cmetcalf@tilera.com>
Wed, 15 Sep 2010 15:16:08 +0000 (11:16 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Wed, 15 Sep 2010 15:16:08 +0000 (11:16 -0400)
commit6fd6bdb48f75e984a26f261e13816c8932900da8
treecbdb9e9b760429016a31e1dca3b115548dbebc0a
parent09e95177c87037bb81ab77a364cab53c60ed821f
arch/tile: Change struct sigcontext to be more useful

Rather than just using pt_regs, it now contains the actual saved
state explicitly, similar to pt_regs.  By doing it this way, we
provide a cleaner API for userspace (or equivalently, we avoid the
need for libc to provide its own definition of sigcontext).

While we're at it, move PT_FLAGS_xxx to where they are not visible
from userspace.  And always pass siginfo and mcontext to signal
handlers, even if they claim they don't need it, since sometimes
they actually try to use it anyway in practice.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
arch/tile/include/asm/ptrace.h
arch/tile/include/asm/sigcontext.h
arch/tile/include/asm/signal.h
arch/tile/kernel/signal.c
arch/tile/kernel/stack.c