Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 29553
b: refs/heads/master
c: 27cc64c
h: refs/heads/master
i:
  29551: c4bedd4
v: v3
  • Loading branch information
David S. Miller committed Jun 24, 2006
1 parent e185f9b commit 88c3ceb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 20edac8ad487b784a286c1e59cc24819cb8d3b86
refs/heads/master: 27cc64c7cc9e41788e53655c717aeca2f55f2041
9 changes: 9 additions & 0 deletions trunk/arch/sparc64/kernel/unaligned.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,12 +279,21 @@ static void kernel_mna_trap_fault(void)

asmlinkage void kernel_unaligned_trap(struct pt_regs *regs, unsigned int insn)
{
static unsigned long count, last_time;
enum direction dir = decode_direction(insn);
int size = decode_access_size(insn);

current_thread_info()->kern_una_regs = regs;
current_thread_info()->kern_una_insn = insn;

if (jiffies - last_time > 5 * HZ)
count = 0;
if (count < 5) {
last_time = jiffies;
count++;
printk("Kernel unaligned access at TPC[%lx]\n", regs->tpc);
}

if (!ok_for_kernel(insn) || dir == both) {
printk("Unsupported unaligned load/store trap for kernel "
"at <%016lx>.\n", regs->tpc);
Expand Down

0 comments on commit 88c3ceb

Please sign in to comment.