Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 48996
b: refs/heads/master
c: dfc544c
h: refs/heads/master
v: v3
  • Loading branch information
Dan Williams authored and Russell King committed Feb 14, 2007
1 parent 6d378cc commit 89f439f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 6df26700c0884cb3cce2b9fa4795888f86ca4d8f
refs/heads/master: dfc544c7216b276c1e9c0c753299692df4068c44
5 changes: 4 additions & 1 deletion trunk/arch/arm/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,10 @@ asmlinkage void do_undefinstr(struct pt_regs *regs)
regs->ARM_pc -= correction;

pc = (void __user *)instruction_pointer(regs);
if (thumb_mode(regs)) {

if (processor_mode(regs) == SVC_MODE) {
instr = *(u32 *) pc;
} else if (thumb_mode(regs)) {
get_user(instr, (u16 __user *)pc);
} else {
get_user(instr, (u32 __user *)pc);
Expand Down

0 comments on commit 89f439f

Please sign in to comment.