Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 101596
b: refs/heads/master
c: 9f1067c
h: refs/heads/master
v: v3
  • Loading branch information
Michael Ellerman authored and Paul Mackerras committed May 14, 2008
1 parent 8f86906 commit 0bcb116
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 30 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: af3b74df1b2fa4dbfb0534818167f6393f5ae7c7
refs/heads/master: 9f1067c2d98ac1c43f0c82892f5647774a6ac759
59 changes: 30 additions & 29 deletions trunk/arch/powerpc/xmon/xmon.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ static int do_spu_cmd(void);
static void dump_tlb_44x(void);
#endif

int xmon_no_auto_backtrace;
static int xmon_no_auto_backtrace;

extern void xmon_enter(void);
extern void xmon_leave(void);
Expand Down Expand Up @@ -593,7 +593,7 @@ static int xmon_iabr_match(struct pt_regs *regs)
{
if ((regs->msr & (MSR_IR|MSR_PR|MSR_SF)) != (MSR_IR|MSR_SF))
return 0;
if (iabr == 0)
if (iabr == NULL)
return 0;
xmon_core(regs, 0);
return 1;
Expand Down Expand Up @@ -1142,7 +1142,7 @@ bpt_cmds(void)
} else {
/* assume a breakpoint address */
bp = at_breakpoint(a);
if (bp == 0) {
if (bp == NULL) {
printf("No breakpoint at %x\n", a);
break;
}
Expand Down Expand Up @@ -1370,7 +1370,7 @@ static void print_bug_trap(struct pt_regs *regs)
#endif
}

void excprint(struct pt_regs *fp)
static void excprint(struct pt_regs *fp)
{
unsigned long trap;

Expand Down Expand Up @@ -1408,7 +1408,7 @@ void excprint(struct pt_regs *fp)
print_bug_trap(fp);
}

void prregs(struct pt_regs *fp)
static void prregs(struct pt_regs *fp)
{
int n, trap;
unsigned long base;
Expand Down Expand Up @@ -1463,7 +1463,7 @@ void prregs(struct pt_regs *fp)
printf("dar = "REG" dsisr = %.8lx\n", fp->dar, fp->dsisr);
}

void cacheflush(void)
static void cacheflush(void)
{
int cmd;
unsigned long nflush;
Expand Down Expand Up @@ -1495,7 +1495,7 @@ void cacheflush(void)
catch_memory_errors = 0;
}

unsigned long
static unsigned long
read_spr(int n)
{
unsigned int instrs[2];
Expand Down Expand Up @@ -1533,7 +1533,7 @@ read_spr(int n)
return ret;
}

void
static void
write_spr(int n, unsigned long val)
{
unsigned int instrs[2];
Expand Down Expand Up @@ -1571,7 +1571,7 @@ static unsigned long regno;
extern char exc_prolog;
extern char dec_exc;

void super_regs(void)
static void super_regs(void)
{
int cmd;
unsigned long val;
Expand Down Expand Up @@ -1629,7 +1629,7 @@ void super_regs(void)
/*
* Stuff for reading and writing memory safely
*/
int
static int
mread(unsigned long adrs, void *buf, int size)
{
volatile int n;
Expand Down Expand Up @@ -1666,7 +1666,7 @@ mread(unsigned long adrs, void *buf, int size)
return n;
}

int
static int
mwrite(unsigned long adrs, void *buf, int size)
{
volatile int n;
Expand Down Expand Up @@ -1731,7 +1731,7 @@ static int handle_fault(struct pt_regs *regs)

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

void
static void
byterev(unsigned char *val, int size)
{
int t;
Expand Down Expand Up @@ -1793,7 +1793,7 @@ static char *memex_subcmd_help_string =
" x exit this mode\n"
"";

void
static void
memex(void)
{
int cmd, inc, i, nslash;
Expand Down Expand Up @@ -1944,7 +1944,7 @@ memex(void)
}
}

int
static int
bsesc(void)
{
int c;
Expand Down Expand Up @@ -1984,7 +1984,7 @@ static void xmon_rawdump (unsigned long adrs, long ndump)
#define isxdigit(c) (('0' <= (c) && (c) <= '9') \
|| ('a' <= (c) && (c) <= 'f') \
|| ('A' <= (c) && (c) <= 'F'))
void
static void
dump(void)
{
int c;
Expand Down Expand Up @@ -2022,7 +2022,7 @@ dump(void)
}
}

void
static void
prdump(unsigned long adrs, long ndump)
{
long n, m, c, r, nr;
Expand Down Expand Up @@ -2066,7 +2066,7 @@ prdump(unsigned long adrs, long ndump)

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

int
static int
generic_inst_dump(unsigned long adr, long count, int praddr,
instruction_dump_func dump_func)
{
Expand Down Expand Up @@ -2104,7 +2104,7 @@ generic_inst_dump(unsigned long adr, long count, int praddr,
return adr - first_adr;
}

int
static int
ppc_inst_dump(unsigned long adr, long count, int praddr)
{
return generic_inst_dump(adr, count, praddr, print_insn_powerpc);
Expand All @@ -2126,7 +2126,7 @@ static unsigned long mval; /* byte value to set memory to */
static unsigned long mcount; /* # bytes to affect */
static unsigned long mdiffs; /* max # differences to print */

void
static void
memops(int cmd)
{
scanhex((void *)&mdest);
Expand All @@ -2152,7 +2152,7 @@ memops(int cmd)
}
}

void
static void
memdiffs(unsigned char *p1, unsigned char *p2, unsigned nb, unsigned maxpr)
{
unsigned n, prt;
Expand All @@ -2170,7 +2170,7 @@ memdiffs(unsigned char *p1, unsigned char *p2, unsigned nb, unsigned maxpr)
static unsigned mend;
static unsigned mask;

void
static void
memlocate(void)
{
unsigned a, n;
Expand Down Expand Up @@ -2203,7 +2203,7 @@ memlocate(void)
static unsigned long mskip = 0x1000;
static unsigned long mlim = 0xffffffff;

void
static void
memzcan(void)
{
unsigned char v;
Expand All @@ -2230,7 +2230,7 @@ memzcan(void)
printf("%.8x\n", a - mskip);
}

void proccall(void)
static void proccall(void)
{
unsigned long args[8];
unsigned long ret;
Expand Down Expand Up @@ -2388,7 +2388,7 @@ scanhex(unsigned long *vp)
return 1;
}

void
static void
scannl(void)
{
int c;
Expand All @@ -2399,7 +2399,7 @@ scannl(void)
c = inchar();
}

int hexdigit(int c)
static int hexdigit(int c)
{
if( '0' <= c && c <= '9' )
return c - '0';
Expand Down Expand Up @@ -2430,13 +2430,13 @@ getstring(char *s, int size)
static char line[256];
static char *lineptr;

void
static void
flush_input(void)
{
lineptr = NULL;
}

int
static int
inchar(void)
{
if (lineptr == NULL || *lineptr == 0) {
Expand All @@ -2449,7 +2449,7 @@ inchar(void)
return *lineptr++;
}

void
static void
take_input(char *str)
{
lineptr = str;
Expand Down Expand Up @@ -2618,7 +2618,8 @@ static void dump_tlb_44x(void)
}
}
#endif /* CONFIG_44x */
void xmon_init(int enable)

static void xmon_init(int enable)
{
#ifdef CONFIG_PPC_ISERIES
if (firmware_has_feature(FW_FEATURE_ISERIES))
Expand Down

0 comments on commit 0bcb116

Please sign in to comment.