libpayload: Fix the putc function

Reverse rows and columns on the video putc() function, and watch printf 
work again.

Signed-off-by: Jordan Crouse <jordan.crouse@amd.com>
Acked-by: Myles Watson <mylesgw@gmail.com>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3316 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Jordan Crouse 2008-05-14 20:07:31 +00:00
parent f9b99450ce
commit 3148935557
2 changed files with 3 additions and 2 deletions

View file

@ -126,14 +126,14 @@ void video_console_putchar(unsigned int ch)
case '\t': case '\t':
while(cursorx % 8 && cursorx < VIDEO_COLS) { while(cursorx % 8 && cursorx < VIDEO_COLS) {
if (console) if (console)
console->putc(cursorx, cursory, (ch & 0xFF00) | ' '); console->putc(cursory, cursorx, (ch & 0xFF00) | ' ');
cursorx++; cursorx++;
} }
break; break;
default: default:
if (console) if (console)
console->putc(cursorx++, cursory, ch); console->putc(cursory, cursorx++, ch);
break; break;
} }

View file

@ -33,5 +33,6 @@
int main(void) int main(void)
{ {
printf("Hello world!\n");
return 0; return 0;
} }