Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 9774
b: refs/heads/master
c: 19da83f
h: refs/heads/master
v: v3
  • Loading branch information
George G. Davis authored and Russell King committed Oct 10, 2005
1 parent f7d1fc5 commit fd3576c
Show file tree
Hide file tree
Showing 2 changed files with 11 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: 79d13b62ef9da84d3ba551caac42d6107e57208f
refs/heads/master: 19da83f632d235fff9f94671d2e2cf87d27a2446
11 changes: 10 additions & 1 deletion trunk/arch/arm/mm/alignment.c
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,9 @@ do_alignment_ldrdstrd(unsigned long addr, unsigned long instr,
{
unsigned int rd = RD_BITS(instr);

if (((rd & 1) == 1) || (rd == 14))
goto bad;

ai_dword += 1;

if (user_mode(regs))
Expand Down Expand Up @@ -361,7 +364,8 @@ do_alignment_ldrdstrd(unsigned long addr, unsigned long instr,
}

return TYPE_LDST;

bad:
return TYPE_ERROR;
fault:
return TYPE_FAULT;
}
Expand Down Expand Up @@ -663,6 +667,8 @@ do_alignment(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
else if ((instr & 0x001000f0) == 0x000000d0 || /* LDRD */
(instr & 0x001000f0) == 0x000000f0) /* STRD */
handler = do_alignment_ldrdstrd;
else if ((instr & 0x01f00ff0) == 0x01000090) /* SWP */
goto swp;
else
goto bad;
break;
Expand Down Expand Up @@ -733,6 +739,9 @@ do_alignment(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
do_bad_area(current, current->mm, addr, fsr, regs);
return 0;

swp:
printk(KERN_ERR "Alignment trap: not handling swp instruction\n");

bad:
/*
* Oops, we didn't handle the instruction.
Expand Down

0 comments on commit fd3576c

Please sign in to comment.