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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -33,5 +33,6 @@
|
|||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
|
printf("Hello world!\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user