aboutsummaryrefslogtreecommitdiff
path: root/src/bootsplash.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2010-08-03 20:58:43 -0400
committerKevin O'Connor <kevin@koconnor.net>2010-08-03 20:58:43 -0400
commiteb6dc785475e4676de728f99a0fcd638d81c5b68 (patch)
tree1d966abda646c2cf8105fec961a390aec427e476 /src/bootsplash.c
parentc8e4e88111fdc2682fd157a449234167faded976 (diff)
downloadseabios-hppa-eb6dc785475e4676de728f99a0fcd638d81c5b68.zip
seabios-hppa-eb6dc785475e4676de728f99a0fcd638d81c5b68.tar.gz
seabios-hppa-eb6dc785475e4676de728f99a0fcd638d81c5b68.tar.bz2
Add additional debug status messages to bootsplash code.
Diffstat (limited to 'src/bootsplash.c')
-rw-r--r--src/bootsplash.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bootsplash.c b/src/bootsplash.c
index 1dcd402..14bdd4c 100644
--- a/src/bootsplash.c
+++ b/src/bootsplash.c
@@ -151,6 +151,7 @@ enable_vga_console(void)
if (!CONFIG_BOOTSPLASH)
goto gotext;
+ dprintf(3, "Checking for bootsplash\n");
u32 file = romfile_find("bootsplash.jpg");
if (!file)
goto gotext;
@@ -187,7 +188,9 @@ enable_vga_console(void)
vendor, product);
// Parse jpeg and get image size.
+ dprintf(5, "Copying bootsplash.jpg\n");
romfile_copy(file, filedata, filesize);
+ dprintf(5, "Decoding bootsplash.jpg\n");
int ret = jpeg_decode(jpeg, filedata);
if (ret) {
dprintf(1, "jpeg_decode failed with return code %d...\n", ret);
@@ -214,6 +217,7 @@ enable_vga_console(void)
warn_noalloc();
goto gotext;
}
+ dprintf(5, "Decompressing bootsplash.jpg\n");
ret = jpeg_show(jpeg, picture, width, height, depth);
if (ret) {
dprintf(1, "jpeg_show failed with return code %d...\n", ret);
@@ -221,6 +225,7 @@ enable_vga_console(void)
}
/* Switch to graphics mode */
+ dprintf(5, "Switching to graphics mode\n");
memset(&br, 0, sizeof(br));
br.ax = 0x4f02;
br.bx = (1 << 14) | videomode;
@@ -231,7 +236,9 @@ enable_vga_console(void)
}
/* Show the picture */
+ dprintf(5, "Showing bootsplash.jpg\n");
iomemcpy(framebuffer, picture, imagesize);
+ dprintf(5, "Bootsplash copy complete\n");
SET_EBDA(bootsplash_active, 1);
cleanup: