Author: jcrouse Date: 2008-05-14 22:07:31 +0200 (Wed, 14 May 2008) New Revision: 3316
Modified: trunk/payloads/libpayload/drivers/video/video.c trunk/payloads/libpayload/sample/hello.c Log: 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
Modified: trunk/payloads/libpayload/drivers/video/video.c =================================================================== --- trunk/payloads/libpayload/drivers/video/video.c 2008-05-14 20:05:00 UTC (rev 3315) +++ trunk/payloads/libpayload/drivers/video/video.c 2008-05-14 20:07:31 UTC (rev 3316) @@ -126,14 +126,14 @@ case '\t': while(cursorx % 8 && cursorx < VIDEO_COLS) { if (console) - console->putc(cursorx, cursory, (ch & 0xFF00) | ' '); + console->putc(cursory, cursorx, (ch & 0xFF00) | ' ');
cursorx++; } break; default: if (console) - console->putc(cursorx++, cursory, ch); + console->putc(cursory, cursorx++, ch); break; }
Modified: trunk/payloads/libpayload/sample/hello.c =================================================================== --- trunk/payloads/libpayload/sample/hello.c 2008-05-14 20:05:00 UTC (rev 3315) +++ trunk/payloads/libpayload/sample/hello.c 2008-05-14 20:07:31 UTC (rev 3316) @@ -33,5 +33,6 @@
int main(void) { + printf("Hello world!\n"); return 0; }