Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
fault.c File Reference
#include <linux/module.h>
#include <linux/signal.h>
#include <linux/mm.h>
#include <linux/hardirq.h>
#include <linux/init.h>
#include <linux/kprobes.h>
#include <linux/uaccess.h>
#include <linux/page-flags.h>
#include <linux/sched.h>
#include <linux/io.h>
#include <asm/pgtable.h>
#include <asm/tlbflush.h>

Go to the source code of this file.

Data Structures

struct  fsr_info
 

Macros

#define FSR_LNX_PF   (1 << 31)
 
#define VM_FAULT_BADMAP   0x010000
 
#define VM_FAULT_BADACCESS   0x020000
 

Functions

void show_pte (struct mm_struct *mm, unsigned long addr)
 
void do_bad_area (unsigned long addr, unsigned int fsr, struct pt_regs *regs)
 
void __init hook_fault_code (int nr, int(*fn)(unsigned long, unsigned int, struct pt_regs *), int sig, int code, const char *name)
 
asmlinkage void do_DataAbort (unsigned long addr, unsigned int fsr, struct pt_regs *regs)
 
asmlinkage void do_PrefetchAbort (unsigned long addr, unsigned int ifsr, struct pt_regs *regs)
 

Macro Definition Documentation

#define FSR_LNX_PF   (1 << 31)

Definition at line 29 of file fault.c.

#define VM_FAULT_BADACCESS   0x020000

Definition at line 151 of file fault.c.

#define VM_FAULT_BADMAP   0x010000

Definition at line 150 of file fault.c.

Function Documentation

void do_bad_area ( unsigned long  addr,
unsigned int  fsr,
struct pt_regs regs 
)

Definition at line 135 of file fault.c.

asmlinkage void do_DataAbort ( unsigned long  addr,
unsigned int  fsr,
struct pt_regs regs 
)

Definition at line 459 of file fault.c.

asmlinkage void do_PrefetchAbort ( unsigned long  addr,
unsigned int  ifsr,
struct pt_regs regs 
)

Definition at line 478 of file fault.c.

void __init hook_fault_code ( int  nr,
int(*)(unsigned long, unsigned int, struct pt_regs *)  fn,
int  sig,
int  code,
const char name 
)

Definition at line 443 of file fault.c.

void show_pte ( struct mm_struct mm,
unsigned long  addr 
)

Definition at line 41 of file fault.c.