summaryrefslogtreecommitdiffstats
path: root/util/vgabios/helper_mem.c
diff options
context:
space:
mode:
authorLuc Verhaegen <libv@skynet.be>2009-05-27 11:39:16 +0000
committerLuc Verhaegen <libv@skynet.be>2009-05-27 11:39:16 +0000
commite6e899dde951823ebc9abf997a6af06debac82a3 (patch)
tree348450ad2317cfce4a79595063493a272c240003 /util/vgabios/helper_mem.c
parentbab4f92c8bdde168ad186c054967e36dc5477d10 (diff)
downloadcoreboot-e6e899dde951823ebc9abf997a6af06debac82a3.tar.gz
coreboot-e6e899dde951823ebc9abf997a6af06debac82a3.tar.bz2
coreboot-e6e899dde951823ebc9abf997a6af06debac82a3.zip
util/vgabios: build/warning fixes.
Signed-off-by: Luc Verhaegen <libv@skynet.be> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4312 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/vgabios/helper_mem.c')
-rw-r--r--util/vgabios/helper_mem.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/util/vgabios/helper_mem.c b/util/vgabios/helper_mem.c
index be53598b036f..50a303b45e98 100644
--- a/util/vgabios/helper_mem.c
+++ b/util/vgabios/helper_mem.c
@@ -4,6 +4,8 @@
* execute BIOS int 10h calls in x86 real mode environment
* Copyright 1999 Egbert Eich
*/
+#include <stdio.h>
+
#define _INT10_PRIVATE
#define REG pInt
@@ -35,7 +37,7 @@ void dprint(unsigned long start, unsigned long size)
printf("%2.2x ", (unsigned char) (*(c++)));
c = d;
for (i = 0; i < 16; i++) {
- printf("%c", ((((u8) (*c)) > 32) && (((u8) (*c)) < 128)) ?
+ printf("%c", ((((unsigned char) (*c)) > 32) && (((unsigned char) (*c)) < 128)) ?
(unsigned char) (*(c)) : '.');
c++;
}
@@ -122,7 +124,7 @@ void reset_int_vect(void)
* 64kB. Note that because this data doesn't survive POST, int 0x42 should
* only be used during EGA/VGA BIOS initialisation.
*/
- static const u8 VideoParms[] = {
+ static const unsigned char VideoParms[] = {
/* Timing for modes 0x00 & 0x01 */
0x38, 0x28, 0x2d, 0x0a, 0x1f, 0x06, 0x19, 0x1c,
0x02, 0x07, 0x06, 0x07, 0x00, 0x00, 0x00, 0x00,