[SPARC64]: Store magic cookie and trap type in pt_regs.
commit8243e40acb087fcd9e7609333f0b0551391f49fc
authorDavid S. Miller <davem@davemloft.net>
Thu, 24 Apr 2008 05:52:13 +0000 (23 22:52 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Apr 2008 06:32:20 +0000 (23 23:32 -0700)
tree1995a0617f0b5e861fa9716f0fe67ade561376d6
parentdb9a7fb12c8d05104e8a541003593d62a42ade8f
[SPARC64]: Store magic cookie and trap type in pt_regs.

This sets us up for several simplifications and facilities:

1) The magic cookie lets us identify trap frames more
   accurately in stack backtraces.

2) The trap type lets us simplify all of the "are we in
   a syscall" state management and checks.

3) We can now see if a task off the cpu is sleeping in
   a system call or not.  In fact, we can see what
   trap it is sleeping in whatever the type.  The utrace
   guys will use this.

Based upon some discussions with Roland McGrath.

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