Commit 14464772 authored by Richard Weinberger's avatar Richard Weinberger

sparc: Remove signal translation and exec_domain

As execution domain support is gone we can remove
signal translation from the signal code and remove
exec_domain from thread_info.
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
Acked-by: default avatarDavid S. Miller <davem@davemloft.net>
parent daea906d
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
struct thread_info { struct thread_info {
unsigned long uwinmask; unsigned long uwinmask;
struct task_struct *task; /* main task structure */ struct task_struct *task; /* main task structure */
struct exec_domain *exec_domain; /* execution domain */
unsigned long flags; /* low level flags */ unsigned long flags; /* low level flags */
int cpu; /* cpu we're on */ int cpu; /* cpu we're on */
int preempt_count; /* 0 => preemptable, int preempt_count; /* 0 => preemptable,
...@@ -56,7 +55,6 @@ struct thread_info { ...@@ -56,7 +55,6 @@ struct thread_info {
{ \ { \
.uwinmask = 0, \ .uwinmask = 0, \
.task = &tsk, \ .task = &tsk, \
.exec_domain = &default_exec_domain, \
.flags = 0, \ .flags = 0, \
.cpu = 0, \ .cpu = 0, \
.preempt_count = INIT_PREEMPT_COUNT, \ .preempt_count = INIT_PREEMPT_COUNT, \
...@@ -85,19 +83,18 @@ register struct thread_info *current_thread_info_reg asm("g6"); ...@@ -85,19 +83,18 @@ register struct thread_info *current_thread_info_reg asm("g6");
*/ */
#define TI_UWINMASK 0x00 /* uwinmask */ #define TI_UWINMASK 0x00 /* uwinmask */
#define TI_TASK 0x04 #define TI_TASK 0x04
#define TI_EXECDOMAIN 0x08 /* exec_domain */ #define TI_FLAGS 0x08
#define TI_FLAGS 0x0c #define TI_CPU 0x0c
#define TI_CPU 0x10 #define TI_PREEMPT 0x10 /* preempt_count */
#define TI_PREEMPT 0x14 /* preempt_count */ #define TI_SOFTIRQ 0x14 /* softirq_count */
#define TI_SOFTIRQ 0x18 /* softirq_count */ #define TI_HARDIRQ 0x18 /* hardirq_count */
#define TI_HARDIRQ 0x1c /* hardirq_count */ #define TI_KSP 0x1c /* ksp */
#define TI_KSP 0x20 /* ksp */ #define TI_KPC 0x20 /* kpc (ldd'ed with kpc) */
#define TI_KPC 0x24 /* kpc (ldd'ed with kpc) */ #define TI_KPSR 0x24 /* kpsr */
#define TI_KPSR 0x28 /* kpsr */ #define TI_KWIM 0x28 /* kwim (ldd'ed with kpsr) */
#define TI_KWIM 0x2c /* kwim (ldd'ed with kpsr) */ #define TI_REG_WINDOW 0x2c
#define TI_REG_WINDOW 0x30 #define TI_RWIN_SPTRS 0x22c
#define TI_RWIN_SPTRS 0x230 #define TI_W_SAVED 0x24c
#define TI_W_SAVED 0x250
/* /*
* thread information flag bit numbers * thread information flag bit numbers
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#include <asm/types.h> #include <asm/types.h>
struct task_struct; struct task_struct;
struct exec_domain;
struct thread_info { struct thread_info {
/* D$ line 1 */ /* D$ line 1 */
...@@ -44,7 +43,6 @@ struct thread_info { ...@@ -44,7 +43,6 @@ struct thread_info {
/* D$ line 2 */ /* D$ line 2 */
unsigned long fault_address; unsigned long fault_address;
struct pt_regs *kregs; struct pt_regs *kregs;
struct exec_domain *exec_domain;
int preempt_count; /* 0 => preemptable, <0 => BUG */ int preempt_count; /* 0 => preemptable, <0 => BUG */
__u8 new_child; __u8 new_child;
__u8 current_ds; __u8 current_ds;
...@@ -80,18 +78,17 @@ struct thread_info { ...@@ -80,18 +78,17 @@ struct thread_info {
#define TI_KSP 0x00000018 #define TI_KSP 0x00000018
#define TI_FAULT_ADDR 0x00000020 #define TI_FAULT_ADDR 0x00000020
#define TI_KREGS 0x00000028 #define TI_KREGS 0x00000028
#define TI_EXEC_DOMAIN 0x00000030 #define TI_PRE_COUNT 0x00000030
#define TI_PRE_COUNT 0x00000038 #define TI_NEW_CHILD 0x00000034
#define TI_NEW_CHILD 0x0000003c #define TI_CURRENT_DS 0x00000035
#define TI_CURRENT_DS 0x0000003d #define TI_CPU 0x00000036
#define TI_CPU 0x0000003e #define TI_UTRAPS 0x00000038
#define TI_UTRAPS 0x00000040 #define TI_REG_WINDOW 0x00000040
#define TI_REG_WINDOW 0x00000048 #define TI_RWIN_SPTRS 0x000003c0
#define TI_RWIN_SPTRS 0x000003c8 #define TI_GSR 0x000003f8
#define TI_GSR 0x00000400 #define TI_XFSR 0x00000430
#define TI_XFSR 0x00000438 #define TI_KUNA_REGS 0x00000468
#define TI_KUNA_REGS 0x00000470 #define TI_KUNA_INSN 0x00000470
#define TI_KUNA_INSN 0x00000478
#define TI_FPREGS 0x00000480 #define TI_FPREGS 0x00000480
/* We embed this in the uppermost byte of thread_info->flags */ /* We embed this in the uppermost byte of thread_info->flags */
...@@ -119,7 +116,6 @@ struct thread_info { ...@@ -119,7 +116,6 @@ struct thread_info {
{ \ { \
.task = &tsk, \ .task = &tsk, \
.current_ds = ASI_P, \ .current_ds = ASI_P, \
.exec_domain = &default_exec_domain, \
.preempt_count = INIT_PREEMPT_COUNT, \ .preempt_count = INIT_PREEMPT_COUNT, \
} }
......
...@@ -433,7 +433,6 @@ void trap_init(void) ...@@ -433,7 +433,6 @@ void trap_init(void)
/* Force linker to barf if mismatched */ /* Force linker to barf if mismatched */
if (TI_UWINMASK != offsetof(struct thread_info, uwinmask) || if (TI_UWINMASK != offsetof(struct thread_info, uwinmask) ||
TI_TASK != offsetof(struct thread_info, task) || TI_TASK != offsetof(struct thread_info, task) ||
TI_EXECDOMAIN != offsetof(struct thread_info, exec_domain) ||
TI_FLAGS != offsetof(struct thread_info, flags) || TI_FLAGS != offsetof(struct thread_info, flags) ||
TI_CPU != offsetof(struct thread_info, cpu) || TI_CPU != offsetof(struct thread_info, cpu) ||
TI_PREEMPT != offsetof(struct thread_info, preempt_count) || TI_PREEMPT != offsetof(struct thread_info, preempt_count) ||
......
...@@ -2691,8 +2691,6 @@ void __init trap_init(void) ...@@ -2691,8 +2691,6 @@ void __init trap_init(void)
fault_address) || fault_address) ||
TI_KREGS != offsetof(struct thread_info, kregs) || TI_KREGS != offsetof(struct thread_info, kregs) ||
TI_UTRAPS != offsetof(struct thread_info, utraps) || TI_UTRAPS != offsetof(struct thread_info, utraps) ||
TI_EXEC_DOMAIN != offsetof(struct thread_info,
exec_domain) ||
TI_REG_WINDOW != offsetof(struct thread_info, TI_REG_WINDOW != offsetof(struct thread_info,
reg_window) || reg_window) ||
TI_RWIN_SPTRS != offsetof(struct thread_info, TI_RWIN_SPTRS != offsetof(struct thread_info,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment