diff options
author | Adrian Bunk <bunk@kernel.org> | 2007-11-17 11:41:56 -0500 |
---|---|---|
committer | Bryan Wu <bryan.wu@analog.com> | 2007-11-17 11:41:56 -0500 |
commit | 05c484355fa6b22af5c1c96db154f108f8b5c625 (patch) | |
tree | b00c65f5ee3c07375febdc5a92bd6f83febdb3ba /arch/blackfin/kernel/process.c | |
parent | 09db9487b099bb18089cc9bff321a84e7494ec50 (diff) |
Blackfin arch: remove dump_thread()
The only user is the a.out support.
It was therefore removed prior to the blackfin merge from all
architectures not supporting a.out.
Currently, Blackfin doesn't suppport a.out.
Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Diffstat (limited to 'arch/blackfin/kernel/process.c')
-rw-r--r-- | arch/blackfin/kernel/process.c | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/arch/blackfin/kernel/process.c b/arch/blackfin/kernel/process.c index 9124467651c4..1a8cf3364e92 100644 --- a/arch/blackfin/kernel/process.c +++ b/arch/blackfin/kernel/process.c | |||
@@ -239,51 +239,6 @@ copy_thread(int nr, unsigned long clone_flags, | |||
239 | } | 239 | } |
240 | 240 | ||
241 | /* | 241 | /* |
242 | * fill in the user structure for a core dump.. | ||
243 | */ | ||
244 | void dump_thread(struct pt_regs *regs, struct user *dump) | ||
245 | { | ||
246 | dump->magic = CMAGIC; | ||
247 | dump->start_code = 0; | ||
248 | dump->start_stack = rdusp() & ~(PAGE_SIZE - 1); | ||
249 | dump->u_tsize = ((unsigned long)current->mm->end_code) >> PAGE_SHIFT; | ||
250 | dump->u_dsize = ((unsigned long)(current->mm->brk + | ||
251 | (PAGE_SIZE - 1))) >> PAGE_SHIFT; | ||
252 | dump->u_dsize -= dump->u_tsize; | ||
253 | dump->u_ssize = 0; | ||
254 | |||
255 | if (dump->start_stack < TASK_SIZE) | ||
256 | dump->u_ssize = | ||
257 | ((unsigned long)(TASK_SIZE - | ||
258 | dump->start_stack)) >> PAGE_SHIFT; | ||
259 | |||
260 | dump->u_ar0 = (struct user_regs_struct *)((int)&dump->regs - (int)dump); | ||
261 | |||
262 | dump->regs.r0 = regs->r0; | ||
263 | dump->regs.r1 = regs->r1; | ||
264 | dump->regs.r2 = regs->r2; | ||
265 | dump->regs.r3 = regs->r3; | ||
266 | dump->regs.r4 = regs->r4; | ||
267 | dump->regs.r5 = regs->r5; | ||
268 | dump->regs.r6 = regs->r6; | ||
269 | dump->regs.r7 = regs->r7; | ||
270 | dump->regs.p0 = regs->p0; | ||
271 | dump->regs.p1 = regs->p1; | ||
272 | dump->regs.p2 = regs->p2; | ||
273 | dump->regs.p3 = regs->p3; | ||
274 | dump->regs.p4 = regs->p4; | ||
275 | dump->regs.p5 = regs->p5; | ||
276 | dump->regs.orig_p0 = regs->orig_p0; | ||
277 | dump->regs.a0w = regs->a0w; | ||
278 | dump->regs.a1w = regs->a1w; | ||
279 | dump->regs.a0x = regs->a0x; | ||
280 | dump->regs.a1x = regs->a1x; | ||
281 | dump->regs.rets = regs->rets; | ||
282 | dump->regs.astat = regs->astat; | ||
283 | dump->regs.pc = regs->pc; | ||
284 | } | ||
285 | |||
286 | /* | ||
287 | * sys_execve() executes a new program. | 242 | * sys_execve() executes a new program. |
288 | */ | 243 | */ |
289 | 244 | ||