diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2010-07-30 12:27:14 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2010-07-30 12:27:14 -0400 |
commit | 2976dd4204405cd9b1296732a5a7ad6d67d8dd73 (patch) | |
tree | fdc4318e24ea7be4fccac69efd4c64c1a531c630 /src/bootsplash.c | |
parent | cc9e1bf4336696340330010d59028e3b8fb9aa7d (diff) | |
download | seabios-2976dd4204405cd9b1296732a5a7ad6d67d8dd73.tar.gz |
Avoid using BSS variables in jpeg.c.
Using BSS increases the rom size (and reduce space for option roms).
So, move BSS variables in the jpeg.c code to malloc'd memory.
Also, move struct and error declarations from jpeg.h to jpeg.c.
Diffstat (limited to 'src/bootsplash.c')
-rw-r--r-- | src/bootsplash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootsplash.c b/src/bootsplash.c index ed104159..2c45406b 100644 --- a/src/bootsplash.c +++ b/src/bootsplash.c @@ -127,7 +127,7 @@ void enable_vga_console(void) picture = malloc_tmphigh(imagesize); vesa_info = malloc_tmplow(sizeof(*vesa_info)); mode_info = malloc_tmplow(sizeof(*mode_info)); - decdata = malloc_tmphigh(sizeof(*decdata)); + decdata = jpeg_alloc(); if (!jpeg || !picture || !vesa_info || !mode_info || !decdata) { warn_noalloc(); goto gotext; |