summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-09-25 21:33:06 -0600
committerBin Meng <bmeng.cn@gmail.com>2016-10-11 11:55:33 +0800
commit2cd11a23c8e01503032df34b99d563603a54f4d9 (patch)
treeb3c8f6c8330b20c77a82779b1633ea5bfbe59247
parent22d9574337f47d6a47f40dc1874291108ad30b41 (diff)
downloadu-boot-imx-2cd11a23c8e01503032df34b99d563603a54f4d9.zip
u-boot-imx-2cd11a23c8e01503032df34b99d563603a54f4d9.tar.gz
u-boot-imx-2cd11a23c8e01503032df34b99d563603a54f4d9.tar.bz2
bios_emulator: Fix cast for 64-bit compilation
Fix a cast that causes warnings on 64-bit machines. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
-rw-r--r--drivers/bios_emulator/atibios.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bios_emulator/atibios.c b/drivers/bios_emulator/atibios.c
index 7717246..2d5b5dc 100644
--- a/drivers/bios_emulator/atibios.c
+++ b/drivers/bios_emulator/atibios.c
@@ -599,7 +599,7 @@ int biosemu_run(pci_dev_t pcidev, uchar *bios_rom, int bios_len,
if (clean_up) {
BE_exit();
if (vga_info->BIOSImage &&
- (u32)(vga_info->BIOSImage) != 0xc0000)
+ (ulong)(vga_info->BIOSImage) != 0xc0000)
free(vga_info->BIOSImage);
free(vga_info);
vga_info = NULL;