unsigned long flags;  flags = condition_codes(regs);  print_symbol("PC is at %s\n", instruction_pointer(regs)); print_symbol("LR is at %s\n", regs->ARM_lr); printk("pc : [<%08lx>]    lr : [<%08lx>]    %s\n" "sp : %08lx  ip : %08lx  fp : %08lx\n", instruction_pointer(regs), regs->ARM_lr, print_tainted(), regs->ARM_sp, regs->ARM_ip, regs->ARM_fp); printk("r10: %08lx  r9 : %08lx  r8 : %08lx\n", regs->ARM_r10, regs->ARM_r9, regs->ARM_r8); printk("r7 : %08lx  r6 : %08lx  r5 : %08lx  r4 : %08lx\n", regs->ARM_r7, regs->ARM_r6, regs->ARM_r5, regs->ARM_r4); printk("r3 : %08lx  r2 : %08lx  r1 : %08lx  r0 : %08lx\n", regs->ARM_r3, regs->ARM_r2, regs->ARM_r1, regs->ARM_r0); printk("Flags: %c%c%c%c", flags & PSR_N_BIT ? 'N' : 'n', flags & PSR_Z_BIT ? 'Z' : 'z', flags & PSR_C_BIT ? 'C' : 'c', flags & PSR_V_BIT ? 'V' : 'v'); printk("  IRQs o%s  FIQs o%s  Mode %s%s  Segment %s\n", interrupts_enabled(regs) ? "n" : "ff", fast_interrupts_enabled(regs) ? "n" : "ff", processor_modes[processor_mode(regs)], thumb_mode(regs) ? " (T)" : "", get_fs() == get_ds() ? "kernel" : "user"); { unsigned int ctrl, transbase, dac; __asm__ ( "	mrc p15, 0, %0, c1, c0\n" "	mrc p15, 0, %1, c2, c0\n" "	mrc p15, 0, %2, c3, c0\n" : "=r" (ctrl), "=r" (transbase), "=r" (dac)); printk("Control: %04X  Table: %08X  DAC: %08X\n", ctrl, transbase, dac); } 
printk("\n"); printk("Pid: %d, comm: %20s\n", current->pid, current->comm); __show_regs(regs); __backtrace(); 
void show_regs(struct pt_regs * regs){	unsigned long flags;	flags = condition_codes(regs);	print_symbol("PC is at %s\n", instruction_pointer(regs));	print_symbol("LR is at %s\n", regs->ARM_lr);	printk("pc : [<%08lx>]    lr : [<%08lx>]    %s\n"	       "sp : %08lx  ip : %08lx  fp : %08lx\n",		instruction_pointer(regs),		regs->ARM_lr, print_tainted(), regs->ARM_sp,		regs->ARM_ip, regs->ARM_fp);	printk("r10: %08lx  r9 : %08lx  r8 : %08lx\n",		regs->ARM_r10, regs->ARM_r9,		regs->ARM_r8);	printk("r7 : %08lx  r6 : %08lx  r5 : %08lx  r4 : %08lx\n",		regs->ARM_r7, regs->ARM_r6,		regs->ARM_r5, regs->ARM_r4);	printk("r3 : %08lx  r2 : %08lx  r1 : %08lx  r0 : %08lx\n",		regs->ARM_r3, regs->ARM_r2,		regs->ARM_r1, regs->ARM_r0);	printk("Flags: %c%c%c%c",		flags & PSR_N_BIT ? 'N' : 'n',		flags & PSR_Z_BIT ? 'Z' : 'z',		flags & PSR_C_BIT ? 'C' : 'c',		flags & PSR_V_BIT ? 'V' : 'v');	printk("  IRQs o%s  FIQs o%s  Mode %s%s  Segment %s\n",		interrupts_enabled(regs) ? "n" : "ff",		fast_interrupts_enabled(regs) ? "n" : "ff",		processor_modes[processor_mode(regs)],		thumb_mode(regs) ? " (T)" : "",		get_fs() == get_ds() ? "kernel" : "user");	{		unsigned int ctrl, transbase, dac;		  __asm__ (		"	mrc p15, 0, %0, c1, c0\n"		"	mrc p15, 0, %1, c2, c0\n"		"	mrc p15, 0, %2, c3, c0\n"		: "=r" (ctrl), "=r" (transbase), "=r" (dac));		printk("Control: %04X  Table: %08X  DAC: %08X\n",		  	ctrl, transbase, dac);	}}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/652a12ef98d16ccd1ee5cdf2c832ce5411ed3262/process.c/clean/arch/arm/kernel/process.c