summaryrefslogtreecommitdiffstats
path: root/arch/ppc/kernel/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ppc/kernel/process.c')
-rw-r--r--arch/ppc/kernel/process.c24
1 files changed, 17 insertions, 7 deletions
diff --git a/arch/ppc/kernel/process.c b/arch/ppc/kernel/process.c
index 5ea55cee9..ebe64a429 100644
--- a/arch/ppc/kernel/process.c
+++ b/arch/ppc/kernel/process.c
@@ -1,4 +1,6 @@
/*
+ * $Id: process.c,v 1.70 1999/01/07 16:28:59 cort Exp $
+ *
* linux/arch/ppc/kernel/process.c
*
* Derived from "arch/i386/kernel/process.c"
@@ -180,13 +182,6 @@ switch_to(struct task_struct *prev, struct task_struct *new)
if ( prev->tss.regs->msr & MSR_FP )
smp_giveup_fpu(prev);
- /* be noisy about processor changes for debugging -- Cort */
- if ( (new->last_processor != NO_PROC_ID) &&
- (new->last_processor != new->processor) )
- printk("switch_to(): changing cpu's %d -> %d %s/%d\n",
- new->last_processor,new->processor,
- new->comm,new->pid);
-
prev->last_processor = prev->processor;
current_set[smp_processor_id()] = new;
#endif /* __SMP__ */
@@ -236,6 +231,19 @@ void show_regs(struct pt_regs * regs)
out:
}
+void instruction_dump (unsigned long *pc)
+{
+ int i;
+
+ if((((unsigned long) pc) & 3))
+ return;
+
+ printk("Instruction DUMP:");
+ for(i = -3; i < 6; i++)
+ printk("%c%08lx%c",i?' ':'<',pc[i],i?' ':'>');
+ printk("\n");
+}
+
void exit_thread(void)
{
if (last_task_used_math == current)
@@ -450,6 +458,7 @@ print_backtrace(unsigned long *sp)
printk("\n");
}
+#if 0
/*
* Low level print for debugging - Cort
*/
@@ -537,3 +546,4 @@ __initfunc(void ll_puts(const char *s))
orig_x = x;
orig_y = y;
}
+#endif