Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146758
b: refs/heads/master
c: 2bcfffa
h: refs/heads/master
v: v3
  • Loading branch information
Paul Mundt committed May 9, 2009
1 parent 4388c11 commit 9082be1
Show file tree
Hide file tree
Showing 8 changed files with 16 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: 6dbe47a170f80159f23c856ad4e02f2685c6f6cb
refs/heads/master: 2bcfffa42309b6f73042c62459bf5207762a271d
2 changes: 1 addition & 1 deletion trunk/arch/sh/include/asm/kprobes.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <linux/types.h>
#include <linux/ptrace.h>

typedef u16 kprobe_opcode_t;
typedef insn_size_t kprobe_opcode_t;
#define BREAKPOINT_INSTRUCTION 0xc33a

#define MAX_INSN_SIZE 16
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/sh/include/asm/system_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ do { \
})
#endif

int handle_unaligned_access(opcode_t instruction, struct pt_regs *regs,
int handle_unaligned_access(insn_size_t instruction, struct pt_regs *regs,
struct mem_access *ma);

asmlinkage void do_address_error(struct pt_regs *regs,
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/sh/include/asm/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ typedef unsigned short umode_t;
typedef u32 dma_addr_t;

#ifdef CONFIG_SUPERH32
typedef u16 opcode_t;
typedef u16 insn_size_t;
#else
typedef u32 opcode_t;
typedef u32 insn_size_t;
#endif

#endif /* __ASSEMBLY__ */
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/sh/kernel/io_trapped.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ static struct mem_access trapped_io_access = {
int handle_trapped_io(struct pt_regs *regs, unsigned long address)
{
mm_segment_t oldfs;
opcode_t instruction;
insn_size_t instruction;
int tmp;

if (!lookup_tiop(address))
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/sh/kernel/kgdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ char in_nmi = 0; /* Set during NMI to prevent re-entry */
/* Calculate the new address for after a step */
static short *get_step_address(struct pt_regs *linux_regs)
{
opcode_t op = __raw_readw(linux_regs->pc);
insn_size_t op = __raw_readw(linux_regs->pc);
long addr;

/* BT */
Expand Down Expand Up @@ -134,7 +134,7 @@ static short *get_step_address(struct pt_regs *linux_regs)
*/

static unsigned long stepped_address;
static opcode_t stepped_opcode;
static insn_size_t stepped_opcode;

static void do_single_step(struct pt_regs *linux_regs)
{
Expand Down
6 changes: 3 additions & 3 deletions trunk/arch/sh/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ static void handle_BUG(struct pt_regs *regs)

int is_valid_bugaddr(unsigned long addr)
{
unsigned short opcode;
insn_size_t opcode;

if (addr < PAGE_OFFSET)
return 0;
if (probe_kernel_address((u16 *)addr, opcode))
if (probe_kernel_address((insn_size_t *)addr, opcode))
return 0;

return opcode == TRAPA_BUG_OPCODE;
Expand Down Expand Up @@ -66,7 +66,7 @@ BUILD_TRAP_HANDLER(bug)

#ifdef CONFIG_BUG
if (__kernel_text_address(instruction_pointer(regs))) {
opcode_t insn = *(opcode_t *)instruction_pointer(regs);
insn_size_t insn = *(insn_size_t *)instruction_pointer(regs);
if (insn == TRAPA_BUG_OPCODE)
handle_BUG(regs);
}
Expand Down
10 changes: 5 additions & 5 deletions trunk/arch/sh/kernel/traps_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ static struct mem_access user_mem_access = {
* (if that instruction is in a branch delay slot)
* - return 0 if emulation okay, -EFAULT on existential error
*/
static int handle_unaligned_ins(opcode_t instruction, struct pt_regs *regs,
static int handle_unaligned_ins(insn_size_t instruction, struct pt_regs *regs,
struct mem_access *ma)
{
int ret, index, count;
Expand Down Expand Up @@ -322,10 +322,10 @@ static int handle_unaligned_ins(opcode_t instruction, struct pt_regs *regs,
* - fetches the instruction from PC+2
*/
static inline int handle_delayslot(struct pt_regs *regs,
opcode_t old_instruction,
insn_size_t old_instruction,
struct mem_access *ma)
{
opcode_t instruction;
insn_size_t instruction;
void __user *addr = (void __user *)(regs->pc +
instruction_size(old_instruction));

Expand Down Expand Up @@ -365,7 +365,7 @@ static inline int handle_delayslot(struct pt_regs *regs,

static int handle_unaligned_notify_count = 10;

int handle_unaligned_access(opcode_t instruction, struct pt_regs *regs,
int handle_unaligned_access(insn_size_t instruction, struct pt_regs *regs,
struct mem_access *ma)
{
u_int rm;
Expand Down Expand Up @@ -523,7 +523,7 @@ asmlinkage void do_address_error(struct pt_regs *regs,
unsigned long error_code = 0;
mm_segment_t oldfs;
siginfo_t info;
opcode_t instruction;
insn_size_t instruction;
int tmp;

/* Intentional ifdef */
Expand Down

0 comments on commit 9082be1

Please sign in to comment.