Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
traps_32.c File Reference
#include <linux/kernel.h>
#include <linux/ptrace.h>
#include <linux/hardirq.h>
#include <linux/init.h>
#include <linux/spinlock.h>
#include <linux/kallsyms.h>
#include <linux/io.h>
#include <linux/bug.h>
#include <linux/debug_locks.h>
#include <linux/kdebug.h>
#include <linux/limits.h>
#include <linux/sysfs.h>
#include <linux/uaccess.h>
#include <linux/perf_event.h>
#include <asm/alignment.h>
#include <asm/fpu.h>
#include <asm/kprobes.h>
#include <asm/traps.h>
#include <asm/bl_bit.h>

Go to the source code of this file.

Macros

#define TRAP_RESERVED_INST   12
 
#define TRAP_ILLEGAL_SLOT_INST   13
 
#define SH_PC_8BIT_OFFSET(instr)   ((((signed char)(instr))*2) + 4)
 
#define SH_PC_12BIT_OFFSET(instr)   ((((signed short)(instr<<4))>>3) + 4)
 
#define is_dsp_inst(regs)   (0)
 

Functions

int handle_unaligned_access (insn_size_t instruction, struct pt_regs *regs, struct mem_access *ma, int expected, unsigned long address)
 
asmlinkage void do_address_error (struct pt_regs *regs, unsigned long writeaccess, unsigned long address)
 
asmlinkage void do_reserved_inst (unsigned long r4, unsigned long r5, unsigned long r6, unsigned long r7, struct pt_regs __regs)
 
asmlinkage void do_illegal_slot_inst (unsigned long r4, unsigned long r5, unsigned long r6, unsigned long r7, struct pt_regs __regs)
 
asmlinkage void do_exception_error (unsigned long r4, unsigned long r5, unsigned long r6, unsigned long r7, struct pt_regs __regs)
 
void __cpuinit per_cpu_trap_init (void)
 
voidset_exception_table_vec (unsigned int vec, void *handler)
 
void __init trap_init (void)
 

Macro Definition Documentation

#define is_dsp_inst (   regs)    (0)

Definition at line 593 of file traps_32.c.

#define SH_PC_12BIT_OFFSET (   instr)    ((((signed short)(instr<<4))>>3) + 4)

Definition at line 301 of file traps_32.c.

#define SH_PC_8BIT_OFFSET (   instr)    ((((signed char)(instr))*2) + 4)

Definition at line 300 of file traps_32.c.

#define TRAP_ILLEGAL_SLOT_INST   13

Definition at line 46 of file traps_32.c.

#define TRAP_RESERVED_INST   12

Definition at line 45 of file traps_32.c.

Function Documentation

asmlinkage void do_address_error ( struct pt_regs regs,
unsigned long  writeaccess,
unsigned long  address 
)

Definition at line 472 of file traps_32.c.

asmlinkage void do_exception_error ( unsigned long  r4,
unsigned long  r5,
unsigned long  r6,
unsigned long  r7,
struct pt_regs  __regs 
)

Definition at line 733 of file traps_32.c.

asmlinkage void do_illegal_slot_inst ( unsigned long  r4,
unsigned long  r5,
unsigned long  r6,
unsigned long  r7,
struct pt_regs  __regs 
)

Definition at line 704 of file traps_32.c.

asmlinkage void do_reserved_inst ( unsigned long  r4,
unsigned long  r5,
unsigned long  r6,
unsigned long  r7,
struct pt_regs  __regs 
)

Definition at line 616 of file traps_32.c.

int handle_unaligned_access ( insn_size_t  instruction,
struct pt_regs regs,
struct mem_access ma,
int  expected,
unsigned long  address 
)

Definition at line 303 of file traps_32.c.

void __cpuinit per_cpu_trap_init ( void  )

Definition at line 744 of file traps_32.c.

void* set_exception_table_vec ( unsigned int  vec,
void handler 
)

Definition at line 761 of file traps_32.c.

void __init trap_init ( void  )

Definition at line 771 of file traps_32.c.