process.c (05668381140309088443bf5dc53add4104610fbb) process.c (f12d0d7c7786af39435ef6ae9defe47fb58f6091)
1/*
2 * linux/arch/arm/kernel/process.c
3 *
4 * Copyright (C) 1996-2000 Russell King - Converted to ARM.
5 * Original Copyright (C) 1995 Linus Torvalds
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as

--- 207 unchanged lines hidden (view full) ---

216 flags & PSR_C_BIT ? 'C' : 'c',
217 flags & PSR_V_BIT ? 'V' : 'v');
218 printk(" IRQs o%s FIQs o%s Mode %s%s Segment %s\n",
219 interrupts_enabled(regs) ? "n" : "ff",
220 fast_interrupts_enabled(regs) ? "n" : "ff",
221 processor_modes[processor_mode(regs)],
222 thumb_mode(regs) ? " (T)" : "",
223 get_fs() == get_ds() ? "kernel" : "user");
1/*
2 * linux/arch/arm/kernel/process.c
3 *
4 * Copyright (C) 1996-2000 Russell King - Converted to ARM.
5 * Original Copyright (C) 1995 Linus Torvalds
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as

--- 207 unchanged lines hidden (view full) ---

216 flags & PSR_C_BIT ? 'C' : 'c',
217 flags & PSR_V_BIT ? 'V' : 'v');
218 printk(" IRQs o%s FIQs o%s Mode %s%s Segment %s\n",
219 interrupts_enabled(regs) ? "n" : "ff",
220 fast_interrupts_enabled(regs) ? "n" : "ff",
221 processor_modes[processor_mode(regs)],
222 thumb_mode(regs) ? " (T)" : "",
223 get_fs() == get_ds() ? "kernel" : "user");
224#if CONFIG_CPU_CP15
224 {
225 {
225 unsigned int ctrl, transbase, dac;
226 unsigned int ctrl;
226 __asm__ (
227 " mrc p15, 0, %0, c1, c0\n"
227 __asm__ (
228 " mrc p15, 0, %0, c1, c0\n"
228 " mrc p15, 0, %1, c2, c0\n"
229 " mrc p15, 0, %2, c3, c0\n"
230 : "=r" (ctrl), "=r" (transbase), "=r" (dac));
231 printk("Control: %04X Table: %08X DAC: %08X\n",
232 ctrl, transbase, dac);
229 : "=r" (ctrl));
230 printk("Control: %04X\n", ctrl);
233 }
231 }
232#ifdef CONFIG_CPU_CP15_MMU
233 {
234 unsigned int transbase, dac;
235 __asm__ (
236 " mrc p15, 0, %0, c2, c0\n"
237 " mrc p15, 0, %1, c3, c0\n"
238 : "=r" (transbase), "=r" (dac));
239 printk("Table: %08X DAC: %08X\n",
240 transbase, dac);
241 }
242#endif
243#endif
234}
235
236void show_regs(struct pt_regs * regs)
237{
238 printk("\n");
239 printk("Pid: %d, comm: %20s\n", current->pid, current->comm);
240 __show_regs(regs);
241 __backtrace();

--- 246 unchanged lines hidden ---
244}
245
246void show_regs(struct pt_regs * regs)
247{
248 printk("\n");
249 printk("Pid: %d, comm: %20s\n", current->pid, current->comm);
250 __show_regs(regs);
251 __backtrace();

--- 246 unchanged lines hidden ---