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/kernel.h>
#include <linux/sched.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/stringify.h>
#include <linux/kallsyms.h>
#include <linux/delay.h>
#include <linux/hardirq.h>
#include <asm/ptrace.h>
#include <asm/timex.h>
#include <asm/uaccess.h>
#include <asm/pgtable.h>
#include <asm/processor.h>

Go to the source code of this file.

Data Structures

struct  dispatch_init_table_t


#define KRNL   0x01
#define USER   0x02
#define COPROCESSOR(x)   { EXCCAUSE_COPROCESSOR ## x ## _DISABLED, USER, fast_coprocessor }
#define set_handler(idx, handler)   (exc_table[idx] = (unsigned long) (handler))


void kernel_exception (void)
void user_exception (void)
void fast_syscall_kernel (void)
void fast_syscall_user (void)
void fast_alloca (void)
void fast_unaligned (void)
void fast_second_level_miss (void)
void fast_store_prohibited (void)
void fast_coprocessor (void)
void do_illegal_instruction (struct pt_regs *)
void do_interrupt (struct pt_regs *)
void do_unaligned_user (struct pt_regs *)
void do_multihit (struct pt_regs *, unsigned long)
void do_page_fault (struct pt_regs *, unsigned long)
void do_debug (struct pt_regs *)
void system_call (struct pt_regs *)
void die (const char *, struct pt_regs *, long)
void do_unhandled (struct pt_regs *regs, unsigned long exccause)
void do_IRQ (int, struct pt_regs *)
void __init trap_init (void)
void show_regs (struct pt_regs *regs)
void show_trace (struct task_struct *task, unsigned long *sp)
void show_stack (struct task_struct *task, unsigned long *sp)
void dump_stack (void)
 EXPORT_SYMBOL (dump_stack)
void show_code (unsigned int *pc)


unsigned long exc_table [EXC_TABLE_SIZE/4]
unsigned long ignored_level1_interrupts

Macro Definition Documentation

#define COPROCESSOR (   x)    { EXCCAUSE_COPROCESSOR ## x ## _DISABLED, USER, fast_coprocessor }

Definition at line 78 of file traps.c.

#define KRNL   0x01

Definition at line 75 of file traps.c.

#define set_handler (   idx,
)    (exc_table[idx] = (unsigned long) (handler))

Definition at line 309 of file traps.c.

#define USER   0x02

Definition at line 76 of file traps.c.

Function Documentation

DEFINE_SPINLOCK ( die_lock  )
void die ( const char str,
struct pt_regs regs,
long  err 

Definition at line 496 of file traps.c.

void do_debug ( struct pt_regs regs)
void do_illegal_instruction ( struct pt_regs regs)

Definition at line 227 of file traps.c.

void do_interrupt ( struct pt_regs regs)

Definition at line 203 of file traps.c.

void do_IRQ ( int  ,
struct pt_regs  

Definition at line 58 of file intc.c.

void do_multihit ( struct pt_regs regs,
unsigned long  exccause 

Definition at line 190 of file traps.c.

void do_page_fault ( struct pt_regs ,
unsigned  long 

Definition at line 1234 of file fault.c.

void do_unaligned_user ( struct pt_regs )
void do_unhandled ( struct pt_regs regs,
unsigned long  exccause 

Definition at line 173 of file traps.c.

void dump_stack ( void  )

Definition at line 470 of file traps.c.

EXPORT_SYMBOL ( dump_stack  )
void fast_alloca ( void  )
void fast_coprocessor ( void  )
void fast_second_level_miss ( void  )
void fast_store_prohibited ( void  )
void fast_syscall_kernel ( void  )
void fast_syscall_user ( void  )
void fast_unaligned ( void  )
void kernel_exception ( void  )
void show_code ( unsigned int pc)

Definition at line 478 of file traps.c.

void show_regs ( struct pt_regs regs)

Definition at line 349 of file traps.c.

void show_stack ( struct task_struct task,
unsigned long sp 

Definition at line 448 of file traps.c.

void show_trace ( struct task_struct task,
unsigned long sp 

Definition at line 403 of file traps.c.

void system_call ( struct pt_regs )
void __init trap_init ( void  )

Definition at line 311 of file traps.c.

void user_exception ( void  )

Variable Documentation

unsigned long exc_table[EXC_TABLE_SIZE/4]

Definition at line 158 of file traps.c.

unsigned long ignored_level1_interrupts

Definition at line 200 of file traps.c.