projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mmc: sdhci: disable the 8bit mode when host doesn't support it
[oweals/u-boot.git]
/
drivers
/
bios_emulator
/
biosemu.c
diff --git
a/drivers/bios_emulator/biosemu.c
b/drivers/bios_emulator/biosemu.c
index d0c652157782c0e1f4c533cb116d94ae7a86c55d..9d4f07c074d33d1e3ad52a5a09164822188004a9 100644
(file)
--- a/
drivers/bios_emulator/biosemu.c
+++ b/
drivers/bios_emulator/biosemu.c
@@
-3,7
+3,7
@@
* BIOS emulator and interface
* to Realmode X86 Emulator Library
*
* BIOS emulator and interface
* to Realmode X86 Emulator Library
*
-* Copyright (C) 2007 Freescale Semiconductor, Inc.
All rights reserved.
+* Copyright (C) 2007 Freescale Semiconductor, Inc.
* Jason Jin <Jason.jin@freescale.com>
*
* Copyright (C) 1996-1999 SciTech Software, Inc.
* Jason Jin <Jason.jin@freescale.com>
*
* Copyright (C) 1996-1999 SciTech Software, Inc.
@@
-144,7
+144,8
@@
void X86API BE_setVGA(BE_VGAInfo * info)
_BE_env.biosmem_base = _BE_env.busmem_base + 0x20000;
_BE_env.biosmem_limit = 0xC7FFF;
}
_BE_env.biosmem_base = _BE_env.busmem_base + 0x20000;
_BE_env.biosmem_limit = 0xC7FFF;
}
- if (*((u32 *) info->LowMem) == 0)
+ if ((info->LowMem[0] == 0) && (info->LowMem[1] == 0) &&
+ (info->LowMem[2] == 0) && (info->LowMem[3] == 0))
_BE_bios_init((u32 *) info->LowMem);
memcpy((u8 *) M.mem_base, info->LowMem, sizeof(info->LowMem));
}
_BE_bios_init((u32 *) info->LowMem);
memcpy((u8 *) M.mem_base, info->LowMem, sizeof(info->LowMem));
}