mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
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:
parent
f9b99450ce
commit
3148935557
2 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue