Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
7eb7f94c
Commit
7eb7f94c
authored
Jun 08, 2003
by
Paul Mackerras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PPC32: Convert some K&R-style functions to ANSI-style. From Steven Cole.
parent
9d0f5605
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
56 additions
and
154 deletions
+56
-154
arch/ppc/xmon/ppc-opc.c
arch/ppc/xmon/ppc-opc.c
+37
-131
arch/ppc/xmon/xmon.c
arch/ppc/xmon/xmon.c
+19
-23
No files found.
arch/ppc/xmon/ppc-opc.c
View file @
7eb7f94c
This diff is collapsed.
Click to expand it.
arch/ppc/xmon/xmon.c
View file @
7eb7f94c
...
@@ -356,7 +356,7 @@ at_breakpoint(unsigned pc)
...
@@ -356,7 +356,7 @@ at_breakpoint(unsigned pc)
}
}
static
void
static
void
insert_bpts
()
insert_bpts
(
void
)
{
{
int
i
;
int
i
;
struct
bpt
*
bp
;
struct
bpt
*
bp
;
...
@@ -382,7 +382,7 @@ insert_bpts()
...
@@ -382,7 +382,7 @@ insert_bpts()
}
}
static
void
static
void
remove_bpts
()
remove_bpts
(
void
)
{
{
int
i
;
int
i
;
struct
bpt
*
bp
;
struct
bpt
*
bp
;
...
@@ -843,7 +843,7 @@ backtrace(struct pt_regs *excp)
...
@@ -843,7 +843,7 @@ backtrace(struct pt_regs *excp)
}
}
int
int
getsp
()
getsp
(
void
)
{
{
int
x
;
int
x
;
...
@@ -969,7 +969,7 @@ print_sysmap(void)
...
@@ -969,7 +969,7 @@ print_sysmap(void)
}
}
void
void
super_regs
()
super_regs
(
void
)
{
{
int
i
,
cmd
;
int
i
,
cmd
;
unsigned
val
;
unsigned
val
;
...
@@ -1019,7 +1019,7 @@ super_regs()
...
@@ -1019,7 +1019,7 @@ super_regs()
#ifndef CONFIG_PPC_STD_MMU
#ifndef CONFIG_PPC_STD_MMU
static
void
static
void
dump_hash_table
()
dump_hash_table
(
void
)
{
{
printf
(
"This CPU doesn't have a hash table.
\n
"
);
printf
(
"This CPU doesn't have a hash table.
\n
"
);
}
}
...
@@ -1149,7 +1149,7 @@ static unsigned hash_start;
...
@@ -1149,7 +1149,7 @@ static unsigned hash_start;
static
unsigned
hash_end
;
static
unsigned
hash_end
;
static
void
static
void
dump_hash_table
()
dump_hash_table
(
void
)
{
{
int
seg
;
int
seg
;
unsigned
seg_start
,
seg_end
;
unsigned
seg_start
,
seg_end
;
...
@@ -1271,7 +1271,7 @@ static int brev;
...
@@ -1271,7 +1271,7 @@ static int brev;
static
int
mnoread
;
static
int
mnoread
;
void
void
memex
()
memex
(
void
)
{
{
int
cmd
,
inc
,
i
,
nslash
;
int
cmd
,
inc
,
i
,
nslash
;
unsigned
n
;
unsigned
n
;
...
@@ -1408,7 +1408,7 @@ memex()
...
@@ -1408,7 +1408,7 @@ memex()
}
}
int
int
bsesc
()
bsesc
(
void
)
{
{
int
c
;
int
c
;
...
@@ -1423,7 +1423,7 @@ bsesc()
...
@@ -1423,7 +1423,7 @@ bsesc()
}
}
void
void
dump
()
dump
(
void
)
{
{
int
c
;
int
c
;
...
@@ -1522,8 +1522,7 @@ ppc_inst_dump(unsigned adr, int count)
...
@@ -1522,8 +1522,7 @@ ppc_inst_dump(unsigned adr, int count)
}
}
void
void
print_address
(
addr
)
print_address
(
unsigned
addr
)
unsigned
addr
;
{
{
printf
(
"0x%x"
,
addr
);
printf
(
"0x%x"
,
addr
);
}
}
...
@@ -1582,7 +1581,7 @@ static unsigned mend;
...
@@ -1582,7 +1581,7 @@ static unsigned mend;
static
unsigned
mask
;
static
unsigned
mask
;
void
void
memlocate
()
memlocate
(
void
)
{
{
unsigned
a
,
n
;
unsigned
a
,
n
;
unsigned
char
val
[
4
];
unsigned
char
val
[
4
];
...
@@ -1615,7 +1614,7 @@ static unsigned mskip = 0x1000;
...
@@ -1615,7 +1614,7 @@ static unsigned mskip = 0x1000;
static
unsigned
mlim
=
0xffffffff
;
static
unsigned
mlim
=
0xffffffff
;
void
void
memzcan
()
memzcan
(
void
)
{
{
unsigned
char
v
;
unsigned
char
v
;
unsigned
a
;
unsigned
a
;
...
@@ -1679,7 +1678,7 @@ void proccall(void)
...
@@ -1679,7 +1678,7 @@ void proccall(void)
/* Input scanning routines */
/* Input scanning routines */
int
int
skipbl
()
skipbl
(
void
)
{
{
int
c
;
int
c
;
...
@@ -1704,8 +1703,7 @@ static char *regnames[N_PTREGS] = {
...
@@ -1704,8 +1703,7 @@ static char *regnames[N_PTREGS] = {
};
};
int
int
scanhex
(
vp
)
scanhex
(
unsigned
*
vp
)
unsigned
*
vp
;
{
{
int
c
,
d
;
int
c
,
d
;
unsigned
v
;
unsigned
v
;
...
@@ -1776,7 +1774,7 @@ unsigned *vp;
...
@@ -1776,7 +1774,7 @@ unsigned *vp;
}
}
void
void
scannl
()
scannl
(
void
)
{
{
int
c
;
int
c
;
...
@@ -1786,8 +1784,7 @@ scannl()
...
@@ -1786,8 +1784,7 @@ scannl()
c
=
inchar
();
c
=
inchar
();
}
}
int
int
hexdigit
(
int
c
)
hexdigit
(
c
)
{
{
if
(
'0'
<=
c
&&
c
<=
'9'
)
if
(
'0'
<=
c
&&
c
<=
'9'
)
return
c
-
'0'
;
return
c
-
'0'
;
...
@@ -1819,13 +1816,13 @@ static char line[256];
...
@@ -1819,13 +1816,13 @@ static char line[256];
static
char
*
lineptr
;
static
char
*
lineptr
;
void
void
flush_input
()
flush_input
(
void
)
{
{
lineptr
=
NULL
;
lineptr
=
NULL
;
}
}
int
int
inchar
()
inchar
(
void
)
{
{
if
(
lineptr
==
NULL
||
*
lineptr
==
0
)
{
if
(
lineptr
==
NULL
||
*
lineptr
==
0
)
{
if
(
fgets
(
line
,
sizeof
(
line
),
stdin
)
==
NULL
)
{
if
(
fgets
(
line
,
sizeof
(
line
),
stdin
)
==
NULL
)
{
...
@@ -1838,8 +1835,7 @@ inchar()
...
@@ -1838,8 +1835,7 @@ inchar()
}
}
void
void
take_input
(
str
)
take_input
(
char
*
str
)
char
*
str
;
{
{
lineptr
=
str
;
lineptr
=
str
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment