Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
kgdb.c File Reference
#include <linux/kgdb.h>
#include <linux/kdebug.h>
#include <linux/irq.h>
#include <linux/io.h>
#include <asm/cacheflush.h>
#include <asm/asm-offsets.h>
#include <asm/pvr.h>

Go to the source code of this file.

Macros

#define GDB_REG   0
 
#define GDB_PC   32
 
#define GDB_MSR   33
 
#define GDB_EAR   34
 
#define GDB_ESR   35
 
#define GDB_FSR   36
 
#define GDB_BTR   37
 
#define GDB_PVR   38
 
#define GDB_REDR   50
 
#define GDB_RPID   51
 
#define GDB_RZPR   52
 
#define GDB_RTLBX   53
 
#define GDB_RTLBSX   54 /* mfs can't read it */
 
#define GDB_RTLBLO   55
 
#define GDB_RTLBHI   56
 

Functions

void pt_regs_to_gdb_regs (unsigned long *gdb_regs, struct pt_regs *regs)
 
void gdb_regs_to_pt_regs (unsigned long *gdb_regs, struct pt_regs *regs)
 
void microblaze_kgdb_break (struct pt_regs *regs)
 
void sleeping_thread_to_gdb_regs (unsigned long *gdb_regs, struct task_struct *p)
 
void kgdb_arch_set_pc (struct pt_regs *regs, unsigned long ip)
 
int kgdb_arch_handle_exception (int vector, int signo, int err_code, char *remcom_in_buffer, char *remcom_out_buffer, struct pt_regs *regs)
 
int kgdb_arch_init (void)
 
void kgdb_arch_exit (void)
 

Variables

struct pvr_s pvr
 
struct kgdb_arch arch_kgdb_ops
 

Macro Definition Documentation

#define GDB_BTR   37

Definition at line 23 of file kgdb.c.

#define GDB_EAR   34

Definition at line 20 of file kgdb.c.

#define GDB_ESR   35

Definition at line 21 of file kgdb.c.

#define GDB_FSR   36

Definition at line 22 of file kgdb.c.

#define GDB_MSR   33

Definition at line 19 of file kgdb.c.

#define GDB_PC   32

Definition at line 18 of file kgdb.c.

#define GDB_PVR   38

Definition at line 24 of file kgdb.c.

#define GDB_REDR   50

Definition at line 25 of file kgdb.c.

#define GDB_REG   0

Definition at line 17 of file kgdb.c.

#define GDB_RPID   51

Definition at line 26 of file kgdb.c.

#define GDB_RTLBHI   56

Definition at line 31 of file kgdb.c.

#define GDB_RTLBLO   55

Definition at line 30 of file kgdb.c.

#define GDB_RTLBSX   54 /* mfs can't read it */

Definition at line 29 of file kgdb.c.

#define GDB_RTLBX   53

Definition at line 28 of file kgdb.c.

#define GDB_RZPR   52

Definition at line 27 of file kgdb.c.

Function Documentation

void gdb_regs_to_pt_regs ( unsigned long gdb_regs,
struct pt_regs regs 
)

Definition at line 68 of file kgdb.c.

void kgdb_arch_exit ( void  )

Definition at line 136 of file kgdb.c.

int kgdb_arch_handle_exception ( int  vector,
int  signo,
int  err_code,
char remcom_in_buffer,
char remcom_out_buffer,
struct pt_regs regs 
)

Definition at line 111 of file kgdb.c.

int kgdb_arch_init ( void  )

Definition at line 130 of file kgdb.c.

void kgdb_arch_set_pc ( struct pt_regs regs,
unsigned long  ip 
)

Definition at line 106 of file kgdb.c.

void microblaze_kgdb_break ( struct pt_regs regs)

Definition at line 80 of file kgdb.c.

void pt_regs_to_gdb_regs ( unsigned long gdb_regs,
struct pt_regs regs 
)

Definition at line 36 of file kgdb.c.

void sleeping_thread_to_gdb_regs ( unsigned long gdb_regs,
struct task_struct p 
)

Definition at line 92 of file kgdb.c.

Variable Documentation

struct kgdb_arch arch_kgdb_ops
Initial value:
= {
.gdb_bpt_instr = {0xba, 0x0c, 0x00, 0x18},
}

Definition at line 144 of file kgdb.c.

Definition at line 34 of file kgdb.c.