diff options
author | Jordan Crouse <jordan.crouse@amd.com> | 2008-05-14 20:07:31 +0000 |
---|---|---|
committer | Jordan Crouse <jordan.crouse@amd.com> | 2008-05-14 20:07:31 +0000 |
commit | 3148935557fb9f11922e989c1fb40d86d2628d34 (patch) | |
tree | 7bbdd42db909f9778294a4d2b4238c81607078e5 | |
parent | f9b99450ce759587c3702afc3271e89c137cee11 (diff) | |
download | coreboot-3148935557fb9f11922e989c1fb40d86d2628d34.tar.xz |
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
-rw-r--r-- | payloads/libpayload/drivers/video/video.c | 4 | ||||
-rw-r--r-- | payloads/libpayload/sample/hello.c | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/payloads/libpayload/drivers/video/video.c b/payloads/libpayload/drivers/video/video.c index 774493d175..3be98aa86d 100644 --- a/payloads/libpayload/drivers/video/video.c +++ b/payloads/libpayload/drivers/video/video.c @@ -126,14 +126,14 @@ void video_console_putchar(unsigned int ch) 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; } diff --git a/payloads/libpayload/sample/hello.c b/payloads/libpayload/sample/hello.c index be377b5b25..ffd9dc909b 100644 --- a/payloads/libpayload/sample/hello.c +++ b/payloads/libpayload/sample/hello.c @@ -33,5 +33,6 @@ int main(void) { + printf("Hello world!\n"); return 0; } |