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/sched.h>
#include <linux/kernel.h>
#include <linux/signal.h>
#include <linux/smp.h>
#include <linux/kdebug.h>
#include <linux/export.h>
#include <asm/delay.h>
#include <asm/ptrace.h>
#include <asm/oplib.h>
#include <asm/page.h>
#include <asm/pgtable.h>
#include <asm/unistd.h>
#include <asm/traps.h>
#include "entry.h"
#include "kernel.h"

Go to the source code of this file.

Macros

#define __SAVE   __asm__ __volatile__("save %sp, -0x40, %sp\n\t")
 
#define __RESTORE   __asm__ __volatile__("restore %g0, %g0, %g0\n\t")
 

Functions

void die_if_kernel (char *str, struct pt_regs *regs)
 
void do_hw_interrupt (struct pt_regs *regs, unsigned long type)
 
void do_illegal_instruction (struct pt_regs *regs, unsigned long pc, unsigned long npc, unsigned long psr)
 
void do_priv_instruction (struct pt_regs *regs, unsigned long pc, unsigned long npc, unsigned long psr)
 
void do_memaccess_unaligned (struct pt_regs *regs, unsigned long pc, unsigned long npc, unsigned long psr)
 
void do_fpd_trap (struct pt_regs *regs, unsigned long pc, unsigned long npc, unsigned long psr)
 
int do_mathemu (struct pt_regs *, struct task_struct *)
 
void do_fpe_trap (struct pt_regs *regs, unsigned long pc, unsigned long npc, unsigned long psr)
 
void handle_tag_overflow (struct pt_regs *regs, unsigned long pc, unsigned long npc, unsigned long psr)
 
void handle_watchpoint (struct pt_regs *regs, unsigned long pc, unsigned long npc, unsigned long psr)
 
void handle_reg_access (struct pt_regs *regs, unsigned long pc, unsigned long npc, unsigned long psr)
 
void handle_cp_disabled (struct pt_regs *regs, unsigned long pc, unsigned long npc, unsigned long psr)
 
void handle_cp_exception (struct pt_regs *regs, unsigned long pc, unsigned long npc, unsigned long psr)
 
void handle_hw_divzero (struct pt_regs *regs, unsigned long pc, unsigned long npc, unsigned long psr)
 
void trap_init (void)
 

Macro Definition Documentation

#define __RESTORE   __asm__ __volatile__("restore %g0, %g0, %g0\n\t")

Definition at line 45 of file traps_32.c.

#define __SAVE   __asm__ __volatile__("save %sp, -0x40, %sp\n\t")

Definition at line 44 of file traps_32.c.

Function Documentation

void die_if_kernel ( char str,
struct pt_regs regs 
)

Definition at line 47 of file traps_32.c.

void do_fpd_trap ( struct pt_regs regs,
unsigned long  pc,
unsigned long  npc,
unsigned long  psr 
)

Definition at line 180 of file traps_32.c.

void do_fpe_trap ( struct pt_regs regs,
unsigned long  pc,
unsigned long  npc,
unsigned long  psr 
)

Definition at line 224 of file traps_32.c.

void do_hw_interrupt ( struct pt_regs regs,
unsigned long  type 
)

Definition at line 91 of file traps_32.c.

void do_illegal_instruction ( struct pt_regs regs,
unsigned long  pc,
unsigned long  npc,
unsigned long  psr 
)

Definition at line 112 of file traps_32.c.

int do_mathemu ( struct pt_regs ,
struct task_struct  
)

Definition at line 143 of file math_32.c.

void do_memaccess_unaligned ( struct pt_regs regs,
unsigned long  pc,
unsigned long  npc,
unsigned long  psr 
)

Definition at line 149 of file traps_32.c.

void do_priv_instruction ( struct pt_regs regs,
unsigned long  pc,
unsigned long  npc,
unsigned long  psr 
)

Definition at line 132 of file traps_32.c.

void handle_cp_disabled ( struct pt_regs regs,
unsigned long  pc,
unsigned long  npc,
unsigned long  psr 
)

Definition at line 375 of file traps_32.c.

void handle_cp_exception ( struct pt_regs regs,
unsigned long  pc,
unsigned long  npc,
unsigned long  psr 
)

Definition at line 388 of file traps_32.c.

void handle_hw_divzero ( struct pt_regs regs,
unsigned long  pc,
unsigned long  npc,
unsigned long  psr 
)

Definition at line 405 of file traps_32.c.

void handle_reg_access ( struct pt_regs regs,
unsigned long  pc,
unsigned long  npc,
unsigned long  psr 
)

Definition at line 358 of file traps_32.c.

void handle_tag_overflow ( struct pt_regs regs,
unsigned long  pc,
unsigned long  npc,
unsigned long  psr 
)

Definition at line 331 of file traps_32.c.

void handle_watchpoint ( struct pt_regs regs,
unsigned long  pc,
unsigned long  npc,
unsigned long  psr 
)

Definition at line 346 of file traps_32.c.

void trap_init ( void  )

Definition at line 431 of file traps_32.c.