sparc: Pass buffer pointer all the way down to prom_{get,put}char().

This gets us closer to being able to eliminate the use
of dynamic and stack based buffers, so that we can adhere
to the "no buffer addresses above 4GB" rule for PROM calls.

Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
David S. Miller
2010-11-30 14:33:29 -08:00
parent 91921fef7c
commit e62cac1fd0
6 changed files with 55 additions and 54 deletions

View File

@ -23,13 +23,14 @@ static char ppbuf[1024];
void notrace prom_write(const char *buf, unsigned int n)
{
char ch;
while (n != 0) {
--n;
if ((ch = *buf++) == '\n')
prom_putchar('\r');
prom_putchar(ch);
while (n-- != 0) {
char ch = *buf;
if (ch == '\n') {
char tmp = '\r';
prom_putchar(&tmp);
}
prom_putchar(buf);
buf++;
}
}