Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
traps.c File Reference
#include <linux/jiffies.h>
#include <linux/mm.h>
#include <linux/sched.h>
#include <linux/tty.h>
#include <linux/delay.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/kallsyms.h>
#include <linux/ratelimit.h>
#include <asm/gentrap.h>
#include <asm/uaccess.h>
#include <asm/unaligned.h>
#include <asm/sysinfo.h>
#include <asm/hwrpb.h>
#include <asm/mmu_context.h>
#include <asm/special_insns.h>
#include "proto.h"

Go to the source code of this file.

Data Structures

struct  allregs
 
struct  unaligned_stat
 

Macros

#define una_reg(r)   (_regs[(r) >= 16 && (r) <= 18 ? (r)+19 : (r)])
 
#define OP_INT_MASK
 
#define OP_WRITE_MASK
 
#define R(x)   ((size_t) &((struct pt_regs *)0)->x)
 

Functions

void dik_show_regs (struct pt_regs *regs, unsigned long *r9_15)
 
void show_stack (struct task_struct *task, unsigned long *sp)
 
void dump_stack (void)
 
 EXPORT_SYMBOL (dump_stack)
 
void die_if_kernel (char *str, struct pt_regs *regs, long err, unsigned long *r9_15)
 
asmlinkage void do_entArith (unsigned long summary, unsigned long write_mask, struct pt_regs *regs)
 
asmlinkage void do_entIF (unsigned long type, struct pt_regs *regs)
 
asmlinkage void do_entDbg (struct pt_regs *regs)
 
asmlinkage void do_entUna (void *va, unsigned long opcode, unsigned long reg, struct allregs *regs)
 
asmlinkage void do_entUnaUser (void __user *va, unsigned long opcode, unsigned long reg, struct pt_regs *regs)
 
void __cpuinit trap_init (void)
 

Variables

long(* alpha_fp_emul_imprecise )(struct pt_regs *regs, unsigned long writemask) = (void *)dummy_emul
 
long(* alpha_fp_emul )(unsigned long pc) = (void *)dummy_emul
 
struct unaligned_stat unaligned [2]
 

Macro Definition Documentation

#define OP_INT_MASK
Value:
( 1L << 0x28 | 1L << 0x2c /* ldl stl */ \
| 1L << 0x29 | 1L << 0x2d /* ldq stq */ \
| 1L << 0x0c | 1L << 0x0d /* ldwu stw */ \
| 1L << 0x0a | 1L << 0x0e ) /* ldbu stb */

Definition at line 746 of file traps.c.

#define OP_WRITE_MASK
Value:
( 1L << 0x26 | 1L << 0x27 /* sts stt */ \
| 1L << 0x2c | 1L << 0x2d /* stl stq */ \
| 1L << 0x0d | 1L << 0x0e ) /* stw stb */

Definition at line 751 of file traps.c.

#define R (   x)    ((size_t) &((struct pt_regs *)0)->x)

Definition at line 755 of file traps.c.

#define una_reg (   r)    (_regs[(r) >= 16 && (r) <= 18 ? (r)+19 : (r)])

Definition at line 451 of file traps.c.

Function Documentation

void die_if_kernel ( char str,
struct pt_regs regs,
long  err,
unsigned long r9_15 
)

Definition at line 180 of file traps.c.

void dik_show_regs ( struct pt_regs regs,
unsigned long r9_15 
)

Definition at line 65 of file traps.c.

asmlinkage void do_entArith ( unsigned long  summary,
unsigned long  write_mask,
struct pt_regs regs 
)

Definition at line 213 of file traps.c.

asmlinkage void do_entDbg ( struct pt_regs regs)

Definition at line 413 of file traps.c.

asmlinkage void do_entIF ( unsigned long  type,
struct pt_regs regs 
)

Definition at line 240 of file traps.c.

asmlinkage void do_entUna ( void va,
unsigned long  opcode,
unsigned long  reg,
struct allregs regs 
)

Definition at line 455 of file traps.c.

asmlinkage void do_entUnaUser ( void __user va,
unsigned long  opcode,
unsigned long  reg,
struct pt_regs regs 
)

Definition at line 770 of file traps.c.

void dump_stack ( void  )

Definition at line 172 of file traps.c.

EXPORT_SYMBOL ( dump_stack  )
void show_stack ( struct task_struct task,
unsigned long sp 
)

Definition at line 148 of file traps.c.

void __cpuinit trap_init ( void  )

Definition at line 1070 of file traps.c.

Variable Documentation

long(* alpha_fp_emul)(unsigned long pc) = (void *)dummy_emul

Definition at line 205 of file traps.c.

long(* alpha_fp_emul_imprecise)(struct pt_regs *regs, unsigned long writemask) = (void *)dummy_emul

Definition at line 203 of file traps.c.

struct unaligned_stat unaligned[2]