aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorHaavard Skinnemoen <hskinnemoen@atmel.com>2007-11-27 12:59:32 -0500
committerHaavard Skinnemoen <hskinnemoen@atmel.com>2007-12-07 08:52:33 -0500
commitdf679771ce6a6bf57012459fbd15c981deaee526 (patch)
tree84abd309e78e3b6e8f6a20b759f7c50cd66a660c /arch
parent702f22b306c8357b3ef5012b5a8ce062e1d11b4e (diff)
[AVR32] Fix invalid status register bit definitions in asm/ptrace.h
The 'H' bit is bit 29, while the 'R' bit doesn't exist. Luckily, we don't actually use any of the bits in question. Also update show_regs() to show the Debug Mask and Debug state bits. Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/avr32/kernel/process.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/avr32/kernel/process.c b/arch/avr32/kernel/process.c
index 13f988402613..f42a1d57cc72 100644
--- a/arch/avr32/kernel/process.c
+++ b/arch/avr32/kernel/process.c
@@ -287,10 +287,11 @@ void show_regs_log_lvl(struct pt_regs *regs, const char *log_lvl)
287 regs->sr & SR_N ? 'N' : 'n', 287 regs->sr & SR_N ? 'N' : 'n',
288 regs->sr & SR_Z ? 'Z' : 'z', 288 regs->sr & SR_Z ? 'Z' : 'z',
289 regs->sr & SR_C ? 'C' : 'c'); 289 regs->sr & SR_C ? 'C' : 'c');
290 printk("%sMode bits: %c%c%c%c%c%c%c%c%c\n", log_lvl, 290 printk("%sMode bits: %c%c%c%c%c%c%c%c%c%c\n", log_lvl,
291 regs->sr & SR_H ? 'H' : 'h', 291 regs->sr & SR_H ? 'H' : 'h',
292 regs->sr & SR_R ? 'R' : 'r',
293 regs->sr & SR_J ? 'J' : 'j', 292 regs->sr & SR_J ? 'J' : 'j',
293 regs->sr & SR_DM ? 'M' : 'm',
294 regs->sr & SR_D ? 'D' : 'd',
294 regs->sr & SR_EM ? 'E' : 'e', 295 regs->sr & SR_EM ? 'E' : 'e',
295 regs->sr & SR_I3M ? '3' : '.', 296 regs->sr & SR_I3M ? '3' : '.',
296 regs->sr & SR_I2M ? '2' : '.', 297 regs->sr & SR_I2M ? '2' : '.',