sh: Set up correct siginfo structures for page faults.
Remove the previous saving of fault codes into the thread_struct as they are never used, and appeared to be inherited from x86. Signed-off-by: Stuart Menefy <stuart.menefy@st.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
committed by
Paul Mundt
parent
f0bc814cfb
commit
b5a1bcbee4
@@ -136,12 +136,11 @@ union sh_fpu_union {
|
||||
};
|
||||
|
||||
struct thread_struct {
|
||||
/* Saved registers when thread is descheduled */
|
||||
unsigned long sp;
|
||||
unsigned long pc;
|
||||
|
||||
unsigned long trap_no, error_code;
|
||||
unsigned long address;
|
||||
/* Hardware debugging registers may come here */
|
||||
/* Hardware debugging registers */
|
||||
unsigned long ubc_pc;
|
||||
|
||||
/* floating point info */
|
||||
@@ -156,12 +155,7 @@ typedef struct {
|
||||
extern int ubc_usercnt;
|
||||
|
||||
#define INIT_THREAD { \
|
||||
sizeof(init_stack) + (long) &init_stack, /* sp */ \
|
||||
0, /* pc */ \
|
||||
0, 0, \
|
||||
0, \
|
||||
0, \
|
||||
{{{0,}},} /* fpu state */ \
|
||||
.sp = sizeof(init_stack) + (long) &init_stack, \
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user