Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions | Variables
xmon.c File Reference
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/smp.h>
#include <linux/mm.h>
#include <linux/reboot.h>
#include <linux/delay.h>
#include <linux/kallsyms.h>
#include <linux/kmsg_dump.h>
#include <linux/cpumask.h>
#include <linux/export.h>
#include <linux/sysrq.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/bug.h>
#include <asm/ptrace.h>
#include <asm/string.h>
#include <asm/prom.h>
#include <asm/machdep.h>
#include <asm/xmon.h>
#include <asm/processor.h>
#include <asm/pgtable.h>
#include <asm/mmu.h>
#include <asm/mmu_context.h>
#include <asm/cputable.h>
#include <asm/rtas.h>
#include <asm/sstep.h>
#include <asm/irq_regs.h>
#include <asm/spu.h>
#include <asm/spu_priv1.h>
#include <asm/setjmp.h>
#include <asm/reg.h>
#include <asm/debug.h>
#include "nonstdio.h"
#include "dis-asm.h"

Go to the source code of this file.

Data Structures

struct  bpt
 

Macros

#define scanhex   xmon_scanhex
 
#define skipbl   xmon_skipbl
 
#define xmon_owner   0
 
#define MAX_DUMP   (128 * 1024)
 
#define BP_IABR_TE   1 /* IABR translation enabled */
 
#define BP_IABR   2
 
#define BP_TRAP   8
 
#define BP_DABR   0x10
 
#define NBPTS   256
 
#define BP_NUM(bp)   ((bp) - bpts + 1)
 
#define REG   "%.8lx"
 
#define REGS_PER_LINE   8
 
#define LAST_VOLATILE   12
 
#define GETWORD(v)   (((v)[0] << 24) + ((v)[1] << 16) + ((v)[2] << 8) + (v)[3])
 
#define isxdigit(c)
 
#define isalnum(c)
 
#define isspace(c)   (c == ' ' || c == '\t' || c == 10 || c == 13 || c == 0)
 
#define SURVEILLANCE_TOKEN   9000
 
#define FCS(fcs, c)   (((fcs) >> 8) ^ fcstab[((fcs) ^ (c)) & 0xff])
 
#define LRSAVE_OFFSET   (STACK_FRAME_LR_SAVE * sizeof(unsigned long))
 
#define MARKER_OFFSET   (STACK_FRAME_MARKER * sizeof(unsigned long))
 
#define REGS_OFFSET   16
 
#define SWAP(a, b, t)   ((t) = (a), (a) = (b), (b) = (t))
 
#define isxdigit(c)
 
#define N_PTREGS   44
 

Typedefs

typedef int(* instruction_dump_func )(unsigned long inst, unsigned long addr)
 

Functions

int skipbl (void)
 
int scanhex (unsigned long *valp)
 
void getstring (char *, int)
 
void dump_segments (void)
 
void xmon_enter (void)
 
void xmon_leave (void)
 
int xmon (struct pt_regs *excp)
 
 EXPORT_SYMBOL (xmon)
 
irqreturn_t xmon_irq (int irq, void *d)
 
void print_address (unsigned long addr)
 
 early_param ("xmon", early_parse_xmon)
 
void __init xmon_setup (void)
 

Variables

char exc_prolog
 
char dec_exc
 

Macro Definition Documentation

#define BP_DABR   0x10

Definition at line 95 of file xmon.c.

#define BP_IABR   2

Definition at line 93 of file xmon.c.

#define BP_IABR_TE   1 /* IABR translation enabled */

Definition at line 92 of file xmon.c.

#define BP_NUM (   bp)    ((bp) - bpts + 1)

Definition at line 103 of file xmon.c.

#define BP_TRAP   8

Definition at line 94 of file xmon.c.

#define FCS (   fcs,
  c 
)    (((fcs) >> 8) ^ fcstab[((fcs) ^ (c)) & 0xff])

Definition at line 1061 of file xmon.c.

#define GETWORD (   v)    (((v)[0] << 24) + ((v)[1] << 16) + ((v)[2] << 8) + (v)[3])

Definition at line 180 of file xmon.c.

#define isalnum (   c)
Value:
(('0' <= (c) && (c) <= '9') \
|| ('a' <= (c) && (c) <= 'z') \
|| ('A' <= (c) && (c) <= 'Z'))

Definition at line 185 of file xmon.c.

#define isspace (   c)    (c == ' ' || c == '\t' || c == 10 || c == 13 || c == 0)

Definition at line 188 of file xmon.c.

#define isxdigit (   c)
Value:
(('0' <= (c) && (c) <= '9') \
|| ('a' <= (c) && (c) <= 'f') \
|| ('A' <= (c) && (c) <= 'F'))

Definition at line 2109 of file xmon.c.

#define isxdigit (   c)
Value:
(('0' <= (c) && (c) <= '9') \
|| ('a' <= (c) && (c) <= 'f') \
|| ('A' <= (c) && (c) <= 'F'))

Definition at line 2109 of file xmon.c.

#define LAST_VOLATILE   12

Definition at line 177 of file xmon.c.

#define LRSAVE_OFFSET   (STACK_FRAME_LR_SAVE * sizeof(unsigned long))

Definition at line 1293 of file xmon.c.

#define MARKER_OFFSET   (STACK_FRAME_MARKER * sizeof(unsigned long))

Definition at line 1294 of file xmon.c.

#define MAX_DUMP   (128 * 1024)

Definition at line 71 of file xmon.c.

#define N_PTREGS   44

Definition at line 2446 of file xmon.c.

#define NBPTS   256

Definition at line 97 of file xmon.c.

#define REG   "%.8lx"

Definition at line 175 of file xmon.c.

#define REGS_OFFSET   16

Definition at line 1299 of file xmon.c.

#define REGS_PER_LINE   8

Definition at line 176 of file xmon.c.

#define scanhex   xmon_scanhex

Definition at line 55 of file xmon.c.

#define skipbl   xmon_skipbl

Definition at line 56 of file xmon.c.

#define SURVEILLANCE_TOKEN   9000

Definition at line 279 of file xmon.c.

#define SWAP (   a,
  b,
  t 
)    ((t) = (a), (a) = (b), (b) = (t))

Definition at line 1768 of file xmon.c.

#define xmon_owner   0

Definition at line 64 of file xmon.c.

Typedef Documentation

typedef int(* instruction_dump_func)(unsigned long inst, unsigned long addr)

Definition at line 2202 of file xmon.c.

Function Documentation

void dump_segments ( void  )
early_param ( "xmon"  ,
early_parse_xmon   
)
EXPORT_SYMBOL ( xmon  )
void getstring ( char s,
int  size 
)

Definition at line 2575 of file xmon.c.

void print_address ( unsigned long  addr)

Definition at line 2249 of file xmon.c.

int scanhex ( unsigned long valp)

Definition at line 2462 of file xmon.c.

int skipbl ( void  )

Definition at line 2432 of file xmon.c.

int xmon ( struct pt_regs excp)

Definition at line 560 of file xmon.c.

void xmon_enter ( void  )
irqreturn_t xmon_irq ( int  irq,
void d 
)

Definition at line 573 of file xmon.c.

void xmon_leave ( void  )
void __init xmon_setup ( void  )

Definition at line 2992 of file xmon.c.

Variable Documentation

char dec_exc
char exc_prolog