diff options
Diffstat (limited to 'arch/arm/kernel/process.c')
| -rw-r--r-- | arch/arm/kernel/process.c | 33 |
1 files changed, 2 insertions, 31 deletions
diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c index 3fd882337064..d3ea6fa89521 100644 --- a/arch/arm/kernel/process.c +++ b/arch/arm/kernel/process.c | |||
| @@ -28,12 +28,12 @@ | |||
| 28 | #include <linux/pm.h> | 28 | #include <linux/pm.h> |
| 29 | #include <linux/tick.h> | 29 | #include <linux/tick.h> |
| 30 | #include <linux/utsname.h> | 30 | #include <linux/utsname.h> |
| 31 | #include <linux/uaccess.h> | ||
| 31 | 32 | ||
| 32 | #include <asm/leds.h> | 33 | #include <asm/leds.h> |
| 33 | #include <asm/processor.h> | 34 | #include <asm/processor.h> |
| 34 | #include <asm/system.h> | 35 | #include <asm/system.h> |
| 35 | #include <asm/thread_notify.h> | 36 | #include <asm/thread_notify.h> |
| 36 | #include <asm/uaccess.h> | ||
| 37 | #include <asm/mach/time.h> | 37 | #include <asm/mach/time.h> |
| 38 | 38 | ||
| 39 | static const char *processor_modes[] = { | 39 | static const char *processor_modes[] = { |
| @@ -267,35 +267,6 @@ void show_regs(struct pt_regs * regs) | |||
| 267 | __backtrace(); | 267 | __backtrace(); |
| 268 | } | 268 | } |
| 269 | 269 | ||
| 270 | void show_fpregs(struct user_fp *regs) | ||
| 271 | { | ||
| 272 | int i; | ||
| 273 | |||
| 274 | for (i = 0; i < 8; i++) { | ||
| 275 | unsigned long *p; | ||
| 276 | char type; | ||
| 277 | |||
| 278 | p = (unsigned long *)(regs->fpregs + i); | ||
| 279 | |||
| 280 | switch (regs->ftype[i]) { | ||
| 281 | case 1: type = 'f'; break; | ||
| 282 | case 2: type = 'd'; break; | ||
| 283 | case 3: type = 'e'; break; | ||
| 284 | default: type = '?'; break; | ||
| 285 | } | ||
| 286 | if (regs->init_flag) | ||
| 287 | type = '?'; | ||
| 288 | |||
| 289 | printk(" f%d(%c): %08lx %08lx %08lx%c", | ||
| 290 | i, type, p[0], p[1], p[2], i & 1 ? '\n' : ' '); | ||
| 291 | } | ||
| 292 | |||
| 293 | |||
| 294 | printk("FPSR: %08lx FPCR: %08lx\n", | ||
| 295 | (unsigned long)regs->fpsr, | ||
| 296 | (unsigned long)regs->fpcr); | ||
| 297 | } | ||
| 298 | |||
| 299 | /* | 270 | /* |
| 300 | * Free current thread data structures etc.. | 271 | * Free current thread data structures etc.. |
| 301 | */ | 272 | */ |
| @@ -414,7 +385,7 @@ unsigned long get_wchan(struct task_struct *p) | |||
| 414 | do { | 385 | do { |
| 415 | if (fp < stack_start || fp > stack_end) | 386 | if (fp < stack_start || fp > stack_end) |
| 416 | return 0; | 387 | return 0; |
| 417 | lr = pc_pointer (((unsigned long *)fp)[-1]); | 388 | lr = ((unsigned long *)fp)[-1]; |
| 418 | if (!in_sched_functions(lr)) | 389 | if (!in_sched_functions(lr)) |
| 419 | return lr; | 390 | return lr; |
| 420 | fp = *(unsigned long *) (fp - 12); | 391 | fp = *(unsigned long *) (fp - 12); |
