summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2008-08-01 11:48:00 +0000
committerStefan Reinauer <stepan@openbios.org>2008-08-01 11:48:00 +0000
commit20ffc03efaea79a74bdb82adb5be67a58afe2e64 (patch)
tree2890de89e214a845975ad57ae68eda77695843bf /src
parent951c62f07455724913171451b5689e40cb565199 (diff)
fix compile warnings of rom_stream.c (trivial)
Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3450 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src')
-rw-r--r--src/stream/rom_stream.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stream/rom_stream.c b/src/stream/rom_stream.c
index 39bae75b5b..4386649c95 100644
--- a/src/stream/rom_stream.c
+++ b/src/stream/rom_stream.c
@@ -80,8 +80,8 @@ int stream_init(void)
#if _RAMBASE<0x00100000
olen = *(unsigned int *)dest;
#if (CONFIG_CONSOLE_VGA==1) || (CONFIG_PCI_ROM_RUN == 1)
- if((dest < 0xa0000) && ((dest+olen)>0xa0000)) {
- dest = (CONFIG_LB_MEM_TOPK<<10);
+ if((dest < (unsigned char *)0xa0000) && ((dest+olen)>(unsigned char *)0xa0000)) {
+ dest = (unsigned char *)(CONFIG_LB_MEM_TOPK<<10);
}
#endif
if((dest < (unsigned char *) 0xf0000) && ((dest+olen)> (unsigned char *)0xf0000)) { // coreboot tables etc