--- linux-2.6.22.14/arch/powerpc/kernel/traps.c 2008-01-22 13:59:14.000000000 +0200 +++ linux/arch/powerpc/kernel/traps.c 2008-01-15 10:59:50.000000000 +0200 @@ -126,25 +126,25 @@ int die(const char *str, struct pt_regs } if (++die.lock_owner_depth < 3) { - printk("Oops: %s, sig: %ld [#%d]\n", str, err, ++die_counter); + printb("Oops: %s, sig: %ld [#%d]\n", str, err, ++die_counter); #ifdef CONFIG_PREEMPT - printk("PREEMPT "); + printb("PREEMPT "); #endif #ifdef CONFIG_SMP - printk("SMP NR_CPUS=%d ", NR_CPUS); + printb("SMP NR_CPUS=%d ", NR_CPUS); #endif #ifdef CONFIG_DEBUG_PAGEALLOC - printk("DEBUG_PAGEALLOC "); + printb("DEBUG_PAGEALLOC "); #endif #ifdef CONFIG_NUMA - printk("NUMA "); + printb("NUMA "); #endif - printk("%s\n", ppc_md.name ? ppc_md.name : ""); + printb("%s\n", ppc_md.name ? ppc_md.name : ""); print_modules(); show_regs(regs); } else { - printk("Recursive die() failure, output suppressed\n"); + printb("Recursive die() failure, output suppressed\n"); } bust_spinlocks(0); @@ -372,9 +372,9 @@ void machine_check_exception(struct pt_r printk("Data"); printk(" machine check in kernel mode.\n"); #elif defined(CONFIG_440A) - printk("Machine check in kernel mode.\n"); + printb("Machine check in kernel mode.\n"); if (reason & ESR_IMCP){ - printk("Instruction Synchronous Machine Check exception\n"); + printb("Instruction Synchronous Machine Check exception\n"); mtspr(SPRN_ESR, reason & ~ESR_IMCP); } else { @@ -402,82 +402,82 @@ void machine_check_exception(struct pt_r mtspr(SPRN_MCSR, mcsr); } #elif defined (CONFIG_E500) - printk("Machine check in kernel mode.\n"); - printk("Caused by (from MCSR=%lx): ", reason); + printb("Machine check in kernel mode.\n"); + printb("Caused by (from MCSR=%lx): ", reason); if (reason & MCSR_MCP) - printk("Machine Check Signal\n"); + printb("Machine Check Signal\n"); if (reason & MCSR_ICPERR) - printk("Instruction Cache Parity Error\n"); + printb("Instruction Cache Parity Error\n"); if (reason & MCSR_DCP_PERR) - printk("Data Cache Push Parity Error\n"); + printb("Data Cache Push Parity Error\n"); if (reason & MCSR_DCPERR) - printk("Data Cache Parity Error\n"); + printb("Data Cache Parity Error\n"); if (reason & MCSR_GL_CI) - printk("Guarded Load or Cache-Inhibited stwcx.\n"); + printb("Guarded Load or Cache-Inhibited stwcx.\n"); if (reason & MCSR_BUS_IAERR) - printk("Bus - Instruction Address Error\n"); + printb("Bus - Instruction Address Error\n"); if (reason & MCSR_BUS_RAERR) - printk("Bus - Read Address Error\n"); + printb("Bus - Read Address Error\n"); if (reason & MCSR_BUS_WAERR) - printk("Bus - Write Address Error\n"); + printb("Bus - Write Address Error\n"); if (reason & MCSR_BUS_IBERR) - printk("Bus - Instruction Data Error\n"); + printb("Bus - Instruction Data Error\n"); if (reason & MCSR_BUS_RBERR) - printk("Bus - Read Data Bus Error\n"); + printb("Bus - Read Data Bus Error\n"); if (reason & MCSR_BUS_WBERR) - printk("Bus - Read Data Bus Error\n"); + printb("Bus - Read Data Bus Error\n"); if (reason & MCSR_BUS_IPERR) - printk("Bus - Instruction Parity Error\n"); + printb("Bus - Instruction Parity Error\n"); if (reason & MCSR_BUS_RPERR) - printk("Bus - Read Parity Error\n"); + printb("Bus - Read Parity Error\n"); #elif defined (CONFIG_E200) - printk("Machine check in kernel mode.\n"); - printk("Caused by (from MCSR=%lx): ", reason); + printb("Machine check in kernel mode.\n"); + printb("Caused by (from MCSR=%lx): ", reason); if (reason & MCSR_MCP) - printk("Machine Check Signal\n"); + printb("Machine Check Signal\n"); if (reason & MCSR_CP_PERR) - printk("Cache Push Parity Error\n"); + printb("Cache Push Parity Error\n"); if (reason & MCSR_CPERR) - printk("Cache Parity Error\n"); + printb("Cache Parity Error\n"); if (reason & MCSR_EXCP_ERR) - printk("ISI, ITLB, or Bus Error on first instruction fetch for an exception handler\n"); + printb("ISI, ITLB, or Bus Error on first instruction fetch for an exception handler\n"); if (reason & MCSR_BUS_IRERR) - printk("Bus - Read Bus Error on instruction fetch\n"); + printb("Bus - Read Bus Error on instruction fetch\n"); if (reason & MCSR_BUS_DRERR) - printk("Bus - Read Bus Error on data load\n"); + printb("Bus - Read Bus Error on data load\n"); if (reason & MCSR_BUS_WRERR) - printk("Bus - Write Bus Error on buffered store or cache line push\n"); + printb("Bus - Write Bus Error on buffered store or cache line push\n"); #else /* !CONFIG_4xx && !CONFIG_E500 && !CONFIG_E200 */ - printk("Machine check in kernel mode.\n"); - printk("Caused by (from SRR1=%lx): ", reason); + printb("Machine check in kernel mode.\n"); + printb("Caused by (from SRR1=%lx): ", reason); switch (reason & 0x601F0000) { case 0x80000: - printk("Machine check signal\n"); + printb("Machine check signal\n"); break; case 0: /* for 601 */ case 0x40000: case 0x140000: /* 7450 MSS error and TEA */ - printk("Transfer error ack signal\n"); + printb("Transfer error ack signal\n"); break; case 0x20000: - printk("Data parity error signal\n"); + printb("Data parity error signal\n"); break; case 0x10000: - printk("Address parity error signal\n"); + printb("Address parity error signal\n"); break; case 0x20000000: - printk("L1 Data Cache error\n"); + printb("L1 Data Cache error\n"); break; case 0x40000000: - printk("L1 Instruction Cache error\n"); + printb("L1 Instruction Cache error\n"); break; case 0x00100000: - printk("L2 data cache parity error\n"); + printb("L2 data cache parity error\n"); break; default: - printk("Unknown values in msr\n"); + printb("Unknown values in msr\n"); } #endif /* CONFIG_4xx */ @@ -861,7 +861,7 @@ void alignment_exception(struct pt_regs void StackOverflow(struct pt_regs *regs) { - printk(KERN_CRIT "Kernel stack overflow in process %p, r1=%lx\n", + printb(KERN_CRIT "Kernel stack overflow in process %p, r1=%lx\n", current, regs->gpr[1]); debugger(regs); show_regs(regs);