• David S. Miller's avatar
    [SPARC64]: Store magic cookie and trap type in pt_regs. · 8243e40a
    David S. Miller authored
    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: default avatarDavid S. Miller <davem@davemloft.net>
    8243e40a
ptrace.h 7.13 KB