[IA64] MCA/INIT: add an extra thread_info flag

Add an extra thread_info flag to indicate the special MCA/INIT stacks.
Mainly for debuggers.

Signed-off-by: Keith Owens <kaos@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>

authored by

Keith Owens and committed by
Tony Luck
e619ae0b a2a97982

+3 -1
+1 -1
include/asm-ia64/ptrace.h
··· 119 119 unsigned long ar_unat; /* interrupted task's NaT register (preserved) */ 120 120 unsigned long ar_pfs; /* prev function state */ 121 121 unsigned long ar_rsc; /* RSE configuration */ 122 - /* The following two are valid only if cr_ipsr.cpl > 0: */ 122 + /* The following two are valid only if cr_ipsr.cpl > 0 || ti->flags & _TIF_MCA_INIT */ 123 123 unsigned long ar_rnat; /* RSE NaT */ 124 124 unsigned long ar_bspstore; /* RSE bspstore */ 125 125
+2
include/asm-ia64/thread_info.h
··· 76 76 #define TIF_SIGDELAYED 5 /* signal delayed from MCA/INIT/NMI/PMI context */ 77 77 #define TIF_POLLING_NRFLAG 16 /* true if poll_idle() is polling TIF_NEED_RESCHED */ 78 78 #define TIF_MEMDIE 17 79 + #define TIF_MCA_INIT 18 /* this task is processing MCA or INIT */ 79 80 80 81 #define _TIF_SYSCALL_TRACE (1 << TIF_SYSCALL_TRACE) 81 82 #define _TIF_SYSCALL_AUDIT (1 << TIF_SYSCALL_AUDIT) ··· 86 85 #define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED) 87 86 #define _TIF_SIGDELAYED (1 << TIF_SIGDELAYED) 88 87 #define _TIF_POLLING_NRFLAG (1 << TIF_POLLING_NRFLAG) 88 + #define _TIF_MCA_INIT (1 << TIF_MCA_INIT) 89 89 90 90 /* "work to do on user-return" bits */ 91 91 #define TIF_ALLWORK_MASK (_TIF_NOTIFY_RESUME|_TIF_SIGPENDING|_TIF_NEED_RESCHED|_TIF_SYSCALL_TRACE|_TIF_SYSCALL_AUDIT|_TIF_SIGDELAYED)