Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 163518
b: refs/heads/master
c: 9a4af02
h: refs/heads/master
v: v3
  • Loading branch information
Andre Draszik authored and Paul Mundt committed Aug 24, 2009
1 parent 96d8d4c commit 463ab18
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 16 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: f13327864f94c3a0e6acca923df537d20059639f
refs/heads/master: 9a4af027a03e10e97f56081cd7dd1fda5282bd9c
1 change: 0 additions & 1 deletion trunk/arch/sh/include/asm/ftrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#ifdef CONFIG_FUNCTION_TRACER

#define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */
#define FTRACE_SYSCALL_MAX (NR_syscalls - 1)

#ifndef __ASSEMBLY__
extern void mcount(void);
Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/sh/kernel/ftrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,8 @@ static struct syscall_metadata *find_syscall_meta(unsigned long *syscall)
return NULL;
}

#define FTRACE_SYSCALL_MAX (NR_syscalls - 1)

struct syscall_metadata *syscall_nr_to_meta(int nr)
{
if (!syscalls_metadata || nr >= FTRACE_SYSCALL_MAX || nr < 0)
Expand Down
17 changes: 4 additions & 13 deletions trunk/arch/sh/kernel/traps_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,13 +359,6 @@ static inline int handle_delayslot(struct pt_regs *regs,
#define SH_PC_8BIT_OFFSET(instr) ((((signed char)(instr))*2) + 4)
#define SH_PC_12BIT_OFFSET(instr) ((((signed short)(instr<<4))>>3) + 4)

/*
* XXX: SH-2A needs this too, but it needs an overhaul thanks to mixed 32-bit
* opcodes..
*/

static int handle_unaligned_notify_count = 10;

int handle_unaligned_access(insn_size_t instruction, struct pt_regs *regs,
struct mem_access *ma)
{
Expand All @@ -375,15 +368,13 @@ int handle_unaligned_access(insn_size_t instruction, struct pt_regs *regs,
index = (instruction>>8)&15; /* 0x0F00 */
rm = regs->regs[index];

/* shout about the first ten userspace fixups */
if (user_mode(regs) && handle_unaligned_notify_count>0) {
handle_unaligned_notify_count--;

printk(KERN_NOTICE "Fixing up unaligned userspace access "
/* shout about fixups */
if (printk_ratelimit())
printk(KERN_NOTICE "Fixing up unaligned %s access "
"in \"%s\" pid=%d pc=0x%p ins=0x%04hx\n",
user_mode(regs) ? "userspace" : "kernel",
current->comm, task_pid_nr(current),
(void *)regs->pc, instruction);
}

ret = -EFAULT;
switch (instruction&0xF000) {
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/usb/gadget/m66592-udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <linux/delay.h>
#include <linux/io.h>
#include <linux/platform_device.h>
#include <linux/err.h>

#include <linux/usb/ch9.h>
#include <linux/usb/gadget.h>

Expand Down

0 comments on commit 463ab18

Please sign in to comment.