Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 59247
b: refs/heads/master
c: 909d6c6
h: refs/heads/master
i:
  59245: 190096b
  59243: 9d73358
  59239: 7ad0b30
  59231: 6590979
v: v3
  • Loading branch information
George G. Davis authored and Russell King committed Jul 12, 2007
1 parent a659e18 commit a79537e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9d20fdd58e74d4d26dc5216efaaa0f800c23dd3a
refs/heads/master: 909d6c6c80311f800aee338e5fa528818b115951
8 changes: 6 additions & 2 deletions trunk/arch/arm/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ static const char *processor_modes[] = {
"UK8_32" , "UK9_32" , "UK10_32", "UND_32" , "UK12_32", "UK13_32", "UK14_32", "SYS_32"
};

static const char *isa_modes[] = {
"ARM" , "Thumb" , "Jazelle", "ThumbEE"
};

extern void setup_mm_for_reboot(char mode);

static volatile int hlt_counter;
Expand Down Expand Up @@ -230,11 +234,11 @@ void __show_regs(struct pt_regs *regs)
buf[3] = flags & PSR_V_BIT ? 'V' : 'v';
buf[4] = '\0';

printk("Flags: %s IRQs o%s FIQs o%s Mode %s%s Segment %s\n",
printk("Flags: %s IRQs o%s FIQs o%s Mode %s ISA %s Segment %s\n",
buf, interrupts_enabled(regs) ? "n" : "ff",
fast_interrupts_enabled(regs) ? "n" : "ff",
processor_modes[processor_mode(regs)],
thumb_mode(regs) ? " (T)" : "",
isa_modes[isa_mode(regs)],
get_fs() == get_ds() ? "kernel" : "user");
#ifdef CONFIG_CPU_CP15
{
Expand Down
4 changes: 4 additions & 0 deletions trunk/include/asm-arm/ptrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ struct pt_regs {
#define thumb_mode(regs) (0)
#endif

#define isa_mode(regs) \
((((regs)->ARM_cpsr & PSR_J_BIT) >> 23) | \
(((regs)->ARM_cpsr & PSR_T_BIT) >> 5))

#define processor_mode(regs) \
((regs)->ARM_cpsr & MODE_MASK)

Expand Down

0 comments on commit a79537e

Please sign in to comment.