]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
sparc64: Clean up handling of pt_regs trap type encoding.
authorDavid S. Miller <davem@davemloft.net>
Sun, 27 Apr 2008 21:52:51 +0000 (14:52 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 27 Apr 2008 21:52:51 +0000 (14:52 -0700)
commit90888816ba1bf1c4eff1e7e4220c1afc802f0fd3
tree365fd47ce0d18d04e86a83e98ac037bce5e99057
parent5526b7e4513c66bc1c91f661dcd518d5199f8934
sparc64: Clean up handling of pt_regs trap type encoding.

If we use this from more than one place, it's better to
have helpers instead of twiddling magic constants all
over.

Add pt_regs_trap_type(), pt_regs_clear_trap_type(), and
pt_regs_is_syscall().

Use them in do_signal().

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/signal.c
include/asm-sparc64/ptrace.h