diff options
Diffstat (limited to 'arch/cris')
-rw-r--r-- | arch/cris/Kconfig | 4 | ||||
-rw-r--r-- | arch/cris/arch-v10/drivers/ds1302.c | 1 | ||||
-rw-r--r-- | arch/cris/arch-v10/drivers/pcf8563.c | 1 | ||||
-rw-r--r-- | arch/cris/arch-v10/kernel/kgdb.c | 6 | ||||
-rw-r--r-- | arch/cris/arch-v10/kernel/process.c | 4 | ||||
-rw-r--r-- | arch/cris/arch-v10/kernel/ptrace.c | 4 | ||||
-rw-r--r-- | arch/cris/arch-v32/kernel/process.c | 6 | ||||
-rw-r--r-- | arch/cris/arch-v32/kernel/ptrace.c | 6 | ||||
-rw-r--r-- | arch/cris/arch-v32/kernel/smp.c | 4 | ||||
-rw-r--r-- | arch/cris/arch-v32/mm/tlb.c | 4 | ||||
-rw-r--r-- | arch/cris/kernel/crisksyms.c | 2 | ||||
-rw-r--r-- | arch/cris/kernel/process.c | 28 |
12 files changed, 16 insertions, 54 deletions
diff --git a/arch/cris/Kconfig b/arch/cris/Kconfig index e5979d68e352..b83261949737 100644 --- a/arch/cris/Kconfig +++ b/arch/cris/Kconfig | |||
@@ -9,10 +9,6 @@ config MMU | |||
9 | bool | 9 | bool |
10 | default y | 10 | default y |
11 | 11 | ||
12 | config UID16 | ||
13 | bool | ||
14 | default y | ||
15 | |||
16 | config RWSEM_GENERIC_SPINLOCK | 12 | config RWSEM_GENERIC_SPINLOCK |
17 | bool | 13 | bool |
18 | default y | 14 | default y |
diff --git a/arch/cris/arch-v10/drivers/ds1302.c b/arch/cris/arch-v10/drivers/ds1302.c index 10795f67f687..b100f26497c4 100644 --- a/arch/cris/arch-v10/drivers/ds1302.c +++ b/arch/cris/arch-v10/drivers/ds1302.c | |||
@@ -148,6 +148,7 @@ | |||
148 | #include <linux/miscdevice.h> | 148 | #include <linux/miscdevice.h> |
149 | #include <linux/delay.h> | 149 | #include <linux/delay.h> |
150 | #include <linux/bcd.h> | 150 | #include <linux/bcd.h> |
151 | #include <linux/capability.h> | ||
151 | 152 | ||
152 | #include <asm/uaccess.h> | 153 | #include <asm/uaccess.h> |
153 | #include <asm/system.h> | 154 | #include <asm/system.h> |
diff --git a/arch/cris/arch-v10/drivers/pcf8563.c b/arch/cris/arch-v10/drivers/pcf8563.c index f2c55742e90c..af517c210383 100644 --- a/arch/cris/arch-v10/drivers/pcf8563.c +++ b/arch/cris/arch-v10/drivers/pcf8563.c | |||
@@ -28,6 +28,7 @@ | |||
28 | #include <linux/ioctl.h> | 28 | #include <linux/ioctl.h> |
29 | #include <linux/delay.h> | 29 | #include <linux/delay.h> |
30 | #include <linux/bcd.h> | 30 | #include <linux/bcd.h> |
31 | #include <linux/capability.h> | ||
31 | 32 | ||
32 | #include <asm/uaccess.h> | 33 | #include <asm/uaccess.h> |
33 | #include <asm/system.h> | 34 | #include <asm/system.h> |
diff --git a/arch/cris/arch-v10/kernel/kgdb.c b/arch/cris/arch-v10/kernel/kgdb.c index b72e6a91a639..34528da98817 100644 --- a/arch/cris/arch-v10/kernel/kgdb.c +++ b/arch/cris/arch-v10/kernel/kgdb.c | |||
@@ -569,12 +569,6 @@ gdb_cris_strtol (const char *s, char **endptr, int base) | |||
569 | return x; | 569 | return x; |
570 | } | 570 | } |
571 | 571 | ||
572 | int | ||
573 | double_this(int x) | ||
574 | { | ||
575 | return 2 * x; | ||
576 | } | ||
577 | |||
578 | /********************************* Register image ****************************/ | 572 | /********************************* Register image ****************************/ |
579 | /* Copy the content of a register image into another. The size n is | 573 | /* Copy the content of a register image into another. The size n is |
580 | the size of the register image. Due to struct assignment generation of | 574 | the size of the register image. Due to struct assignment generation of |
diff --git a/arch/cris/arch-v10/kernel/process.c b/arch/cris/arch-v10/kernel/process.c index 69e28b4057e8..0a675ce9e099 100644 --- a/arch/cris/arch-v10/kernel/process.c +++ b/arch/cris/arch-v10/kernel/process.c | |||
@@ -79,7 +79,7 @@ void hard_reset_now (void) | |||
79 | */ | 79 | */ |
80 | unsigned long thread_saved_pc(struct task_struct *t) | 80 | unsigned long thread_saved_pc(struct task_struct *t) |
81 | { | 81 | { |
82 | return (unsigned long)user_regs(t->thread_info)->irp; | 82 | return task_pt_regs(t)->irp; |
83 | } | 83 | } |
84 | 84 | ||
85 | static void kernel_thread_helper(void* dummy, int (*fn)(void *), void * arg) | 85 | static void kernel_thread_helper(void* dummy, int (*fn)(void *), void * arg) |
@@ -128,7 +128,7 @@ int copy_thread(int nr, unsigned long clone_flags, unsigned long usp, | |||
128 | * remember that the task_struct doubles as the kernel stack for the task | 128 | * remember that the task_struct doubles as the kernel stack for the task |
129 | */ | 129 | */ |
130 | 130 | ||
131 | childregs = user_regs(p->thread_info); | 131 | childregs = task_pt_regs(p); |
132 | 132 | ||
133 | *childregs = *regs; /* struct copy of pt_regs */ | 133 | *childregs = *regs; /* struct copy of pt_regs */ |
134 | 134 | ||
diff --git a/arch/cris/arch-v10/kernel/ptrace.c b/arch/cris/arch-v10/kernel/ptrace.c index 6cbd34a27b90..f214f74f264e 100644 --- a/arch/cris/arch-v10/kernel/ptrace.c +++ b/arch/cris/arch-v10/kernel/ptrace.c | |||
@@ -37,7 +37,7 @@ inline long get_reg(struct task_struct *task, unsigned int regno) | |||
37 | if (regno == PT_USP) | 37 | if (regno == PT_USP) |
38 | return task->thread.usp; | 38 | return task->thread.usp; |
39 | else if (regno < PT_MAX) | 39 | else if (regno < PT_MAX) |
40 | return ((unsigned long *)user_regs(task->thread_info))[regno]; | 40 | return ((unsigned long *)task_pt_regs(task))[regno]; |
41 | else | 41 | else |
42 | return 0; | 42 | return 0; |
43 | } | 43 | } |
@@ -51,7 +51,7 @@ inline int put_reg(struct task_struct *task, unsigned int regno, | |||
51 | if (regno == PT_USP) | 51 | if (regno == PT_USP) |
52 | task->thread.usp = data; | 52 | task->thread.usp = data; |
53 | else if (regno < PT_MAX) | 53 | else if (regno < PT_MAX) |
54 | ((unsigned long *)user_regs(task->thread_info))[regno] = data; | 54 | ((unsigned long *)task_pt_regs(task))[regno] = data; |
55 | else | 55 | else |
56 | return -1; | 56 | return -1; |
57 | return 0; | 57 | return 0; |
diff --git a/arch/cris/arch-v32/kernel/process.c b/arch/cris/arch-v32/kernel/process.c index 882be42114f7..843513102d3c 100644 --- a/arch/cris/arch-v32/kernel/process.c +++ b/arch/cris/arch-v32/kernel/process.c | |||
@@ -96,7 +96,7 @@ hard_reset_now(void) | |||
96 | */ | 96 | */ |
97 | unsigned long thread_saved_pc(struct task_struct *t) | 97 | unsigned long thread_saved_pc(struct task_struct *t) |
98 | { | 98 | { |
99 | return (unsigned long)user_regs(t->thread_info)->erp; | 99 | return task_pt_regs(t)->erp; |
100 | } | 100 | } |
101 | 101 | ||
102 | static void | 102 | static void |
@@ -148,7 +148,7 @@ copy_thread(int nr, unsigned long clone_flags, unsigned long usp, | |||
148 | * fix it up. Note: the task_struct doubles as the kernel stack for the | 148 | * fix it up. Note: the task_struct doubles as the kernel stack for the |
149 | * task. | 149 | * task. |
150 | */ | 150 | */ |
151 | childregs = user_regs(p->thread_info); | 151 | childregs = task_pt_regs(p); |
152 | *childregs = *regs; /* Struct copy of pt_regs. */ | 152 | *childregs = *regs; /* Struct copy of pt_regs. */ |
153 | p->set_child_tid = p->clear_child_tid = NULL; | 153 | p->set_child_tid = p->clear_child_tid = NULL; |
154 | childregs->r10 = 0; /* Child returns 0 after a fork/clone. */ | 154 | childregs->r10 = 0; /* Child returns 0 after a fork/clone. */ |
@@ -157,7 +157,7 @@ copy_thread(int nr, unsigned long clone_flags, unsigned long usp, | |||
157 | * The TLS is in $mof beacuse it is the 5th argument to sys_clone. | 157 | * The TLS is in $mof beacuse it is the 5th argument to sys_clone. |
158 | */ | 158 | */ |
159 | if (p->mm && (clone_flags & CLONE_SETTLS)) { | 159 | if (p->mm && (clone_flags & CLONE_SETTLS)) { |
160 | p->thread_info->tls = regs->mof; | 160 | task_thread_info(p)->tls = regs->mof; |
161 | } | 161 | } |
162 | 162 | ||
163 | /* Put the switch stack right below the pt_regs. */ | 163 | /* Put the switch stack right below the pt_regs. */ |
diff --git a/arch/cris/arch-v32/kernel/ptrace.c b/arch/cris/arch-v32/kernel/ptrace.c index 5528b83a622b..82cf2e3624a4 100644 --- a/arch/cris/arch-v32/kernel/ptrace.c +++ b/arch/cris/arch-v32/kernel/ptrace.c | |||
@@ -46,7 +46,7 @@ long get_reg(struct task_struct *task, unsigned int regno) | |||
46 | unsigned long ret; | 46 | unsigned long ret; |
47 | 47 | ||
48 | if (regno <= PT_EDA) | 48 | if (regno <= PT_EDA) |
49 | ret = ((unsigned long *)user_regs(task->thread_info))[regno]; | 49 | ret = ((unsigned long *)task_pt_regs(task))[regno]; |
50 | else if (regno == PT_USP) | 50 | else if (regno == PT_USP) |
51 | ret = task->thread.usp; | 51 | ret = task->thread.usp; |
52 | else if (regno == PT_PPC) | 52 | else if (regno == PT_PPC) |
@@ -65,13 +65,13 @@ long get_reg(struct task_struct *task, unsigned int regno) | |||
65 | int put_reg(struct task_struct *task, unsigned int regno, unsigned long data) | 65 | int put_reg(struct task_struct *task, unsigned int regno, unsigned long data) |
66 | { | 66 | { |
67 | if (regno <= PT_EDA) | 67 | if (regno <= PT_EDA) |
68 | ((unsigned long *)user_regs(task->thread_info))[regno] = data; | 68 | ((unsigned long *)task_pt_regs(task))[regno] = data; |
69 | else if (regno == PT_USP) | 69 | else if (regno == PT_USP) |
70 | task->thread.usp = data; | 70 | task->thread.usp = data; |
71 | else if (regno == PT_PPC) { | 71 | else if (regno == PT_PPC) { |
72 | /* Write pseudo-PC to ERP only if changed. */ | 72 | /* Write pseudo-PC to ERP only if changed. */ |
73 | if (data != get_pseudo_pc(task)) | 73 | if (data != get_pseudo_pc(task)) |
74 | ((unsigned long *)user_regs(task->thread_info))[PT_ERP] = data; | 74 | task_pt_regs(task)->erp = data; |
75 | } else if (regno <= PT_MAX) | 75 | } else if (regno <= PT_MAX) |
76 | return put_debugreg(task->pid, regno, data); | 76 | return put_debugreg(task->pid, regno, data); |
77 | else | 77 | else |
diff --git a/arch/cris/arch-v32/kernel/smp.c b/arch/cris/arch-v32/kernel/smp.c index 13867f4fad16..da40d19a151e 100644 --- a/arch/cris/arch-v32/kernel/smp.c +++ b/arch/cris/arch-v32/kernel/smp.c | |||
@@ -113,10 +113,10 @@ smp_boot_one_cpu(int cpuid) | |||
113 | if (IS_ERR(idle)) | 113 | if (IS_ERR(idle)) |
114 | panic("SMP: fork failed for CPU:%d", cpuid); | 114 | panic("SMP: fork failed for CPU:%d", cpuid); |
115 | 115 | ||
116 | idle->thread_info->cpu = cpuid; | 116 | task_thread_info(idle)->cpu = cpuid; |
117 | 117 | ||
118 | /* Information to the CPU that is about to boot */ | 118 | /* Information to the CPU that is about to boot */ |
119 | smp_init_current_idle_thread = idle->thread_info; | 119 | smp_init_current_idle_thread = task_thread_info(idle); |
120 | cpu_now_booting = cpuid; | 120 | cpu_now_booting = cpuid; |
121 | 121 | ||
122 | /* Wait for CPU to come online */ | 122 | /* Wait for CPU to come online */ |
diff --git a/arch/cris/arch-v32/mm/tlb.c b/arch/cris/arch-v32/mm/tlb.c index b08a28bb58ab..9d75d7692303 100644 --- a/arch/cris/arch-v32/mm/tlb.c +++ b/arch/cris/arch-v32/mm/tlb.c | |||
@@ -198,9 +198,9 @@ switch_mm(struct mm_struct *prev, struct mm_struct *next, | |||
198 | per_cpu(current_pgd, cpu) = next->pgd; | 198 | per_cpu(current_pgd, cpu) = next->pgd; |
199 | 199 | ||
200 | /* Switch context in the MMU. */ | 200 | /* Switch context in the MMU. */ |
201 | if (tsk && tsk->thread_info) | 201 | if (tsk && task_thread_info(tsk)) |
202 | { | 202 | { |
203 | SPEC_REG_WR(SPEC_REG_PID, next->context.page_id | tsk->thread_info->tls); | 203 | SPEC_REG_WR(SPEC_REG_PID, next->context.page_id | task_thread_info(tsk)->tls); |
204 | } | 204 | } |
205 | else | 205 | else |
206 | { | 206 | { |
diff --git a/arch/cris/kernel/crisksyms.c b/arch/cris/kernel/crisksyms.c index 85833d704ebb..de39725da920 100644 --- a/arch/cris/kernel/crisksyms.c +++ b/arch/cris/kernel/crisksyms.c | |||
@@ -21,7 +21,6 @@ | |||
21 | #include <asm/pgtable.h> | 21 | #include <asm/pgtable.h> |
22 | #include <asm/fasttimer.h> | 22 | #include <asm/fasttimer.h> |
23 | 23 | ||
24 | extern void dump_thread(struct pt_regs *, struct user *); | ||
25 | extern unsigned long get_cmos_time(void); | 24 | extern unsigned long get_cmos_time(void); |
26 | extern void __Udiv(void); | 25 | extern void __Udiv(void); |
27 | extern void __Umod(void); | 26 | extern void __Umod(void); |
@@ -33,7 +32,6 @@ extern void __lshrdi3(void); | |||
33 | extern void iounmap(volatile void * __iomem); | 32 | extern void iounmap(volatile void * __iomem); |
34 | 33 | ||
35 | /* Platform dependent support */ | 34 | /* Platform dependent support */ |
36 | EXPORT_SYMBOL(dump_thread); | ||
37 | EXPORT_SYMBOL(kernel_thread); | 35 | EXPORT_SYMBOL(kernel_thread); |
38 | EXPORT_SYMBOL(get_cmos_time); | 36 | EXPORT_SYMBOL(get_cmos_time); |
39 | EXPORT_SYMBOL(loops_per_usec); | 37 | EXPORT_SYMBOL(loops_per_usec); |
diff --git a/arch/cris/kernel/process.c b/arch/cris/kernel/process.c index 7c80afb10460..4ab3e87115b6 100644 --- a/arch/cris/kernel/process.c +++ b/arch/cris/kernel/process.c | |||
@@ -257,34 +257,6 @@ void flush_thread(void) | |||
257 | { | 257 | { |
258 | } | 258 | } |
259 | 259 | ||
260 | /* | ||
261 | * fill in the user structure for a core dump.. | ||
262 | */ | ||
263 | void dump_thread(struct pt_regs * regs, struct user * dump) | ||
264 | { | ||
265 | #if 0 | ||
266 | int i; | ||
267 | |||
268 | /* changed the size calculations - should hopefully work better. lbt */ | ||
269 | dump->magic = CMAGIC; | ||
270 | dump->start_code = 0; | ||
271 | dump->start_stack = regs->esp & ~(PAGE_SIZE - 1); | ||
272 | dump->u_tsize = ((unsigned long) current->mm->end_code) >> PAGE_SHIFT; | ||
273 | dump->u_dsize = ((unsigned long) (current->mm->brk + (PAGE_SIZE-1))) >> PAGE_SHIFT; | ||
274 | dump->u_dsize -= dump->u_tsize; | ||
275 | dump->u_ssize = 0; | ||
276 | for (i = 0; i < 8; i++) | ||
277 | dump->u_debugreg[i] = current->debugreg[i]; | ||
278 | |||
279 | if (dump->start_stack < TASK_SIZE) | ||
280 | dump->u_ssize = ((unsigned long) (TASK_SIZE - dump->start_stack)) >> PAGE_SHIFT; | ||
281 | |||
282 | dump->regs = *regs; | ||
283 | |||
284 | dump->u_fpvalid = dump_fpu (regs, &dump->i387); | ||
285 | #endif | ||
286 | } | ||
287 | |||
288 | /* Fill in the fpu structure for a core dump. */ | 260 | /* Fill in the fpu structure for a core dump. */ |
289 | int dump_fpu(struct pt_regs *regs, elf_fpregset_t *fpu) | 261 | int dump_fpu(struct pt_regs *regs, elf_fpregset_t *fpu) |
290 | { | 262 | { |