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
nexedi
linux
Commits
e607d6c8
Commit
e607d6c8
authored
Aug 23, 2005
by
Pete Popov
Committed by
Ralf Baechle
Oct 29, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get rid of a bunch of debug serial routines. Use prom_printf instead.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
fabffc13
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
76 deletions
+1
-76
arch/mips/au1000/common/puts.c
arch/mips/au1000/common/puts.c
+1
-76
No files found.
arch/mips/au1000/common/puts.c
View file @
e607d6c8
...
@@ -39,7 +39,6 @@
...
@@ -39,7 +39,6 @@
#define TIMEOUT 0xffffff
#define TIMEOUT 0xffffff
#define SLOW_DOWN
#define SLOW_DOWN
static
const
char
digits
[
16
]
=
"0123456789abcdef"
;
static
volatile
unsigned
long
*
const
com1
=
(
unsigned
long
*
)
SERIAL_BASE
;
static
volatile
unsigned
long
*
const
com1
=
(
unsigned
long
*
)
SERIAL_BASE
;
...
@@ -54,7 +53,7 @@ static inline void slow_down(void)
...
@@ -54,7 +53,7 @@ static inline void slow_down(void)
#endif
#endif
void
void
p
utch
(
const
unsigned
char
c
)
p
rom_putchar
(
const
unsigned
char
c
)
{
{
unsigned
char
ch
;
unsigned
char
ch
;
int
i
=
0
;
int
i
=
0
;
...
@@ -69,77 +68,3 @@ putch(const unsigned char c)
...
@@ -69,77 +68,3 @@ putch(const unsigned char c)
}
while
(
0
==
(
ch
&
TX_BUSY
));
}
while
(
0
==
(
ch
&
TX_BUSY
));
com1
[
SER_DATA
]
=
c
;
com1
[
SER_DATA
]
=
c
;
}
}
void
puts
(
unsigned
char
*
cp
)
{
unsigned
char
ch
;
int
i
=
0
;
while
(
*
cp
)
{
do
{
ch
=
com1
[
SER_CMD
];
slow_down
();
i
++
;
if
(
i
>
TIMEOUT
)
{
break
;
}
}
while
(
0
==
(
ch
&
TX_BUSY
));
com1
[
SER_DATA
]
=
*
cp
++
;
}
putch
(
'\r'
);
putch
(
'\n'
);
}
void
fputs
(
const
char
*
cp
)
{
unsigned
char
ch
;
int
i
=
0
;
while
(
*
cp
)
{
do
{
ch
=
com1
[
SER_CMD
];
slow_down
();
i
++
;
if
(
i
>
TIMEOUT
)
{
break
;
}
}
while
(
0
==
(
ch
&
TX_BUSY
));
com1
[
SER_DATA
]
=
*
cp
++
;
}
}
void
put64
(
uint64_t
ul
)
{
int
cnt
;
unsigned
ch
;
cnt
=
16
;
/* 16 nibbles in a 64 bit long */
putch
(
'0'
);
putch
(
'x'
);
do
{
cnt
--
;
ch
=
(
unsigned
char
)(
ul
>>
cnt
*
4
)
&
0x0F
;
putch
(
digits
[
ch
]);
}
while
(
cnt
>
0
);
}
void
put32
(
unsigned
u
)
{
int
cnt
;
unsigned
ch
;
cnt
=
8
;
/* 8 nibbles in a 32 bit long */
putch
(
'0'
);
putch
(
'x'
);
do
{
cnt
--
;
ch
=
(
unsigned
char
)(
u
>>
cnt
*
4
)
&
0x0F
;
putch
(
digits
[
ch
]);
}
while
(
cnt
>
0
);
}
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