summaryrefslogtreecommitdiff
path: root/lib_ppc/bootm.c
diff options
context:
space:
mode:
authorAndy Fleming <afleming@freescale.com>2008-07-07 14:24:39 -0500
committerWolfgang Denk <wd@denx.de>2008-07-10 00:39:28 +0200
commit98874ff329d4a5b32c467b43f6e966e1aa68479f (patch)
tree18bbde0bbeead87f55171c259c05c91ace1ee192 /lib_ppc/bootm.c
parentda8693a91b8eef75ade8de50a1b2ce035bc5fb54 (diff)
downloadu-boot-imx-98874ff329d4a5b32c467b43f6e966e1aa68479f.zip
u-boot-imx-98874ff329d4a5b32c467b43f6e966e1aa68479f.tar.gz
u-boot-imx-98874ff329d4a5b32c467b43f6e966e1aa68479f.tar.bz2
Fix LMB type issues
The LMB code now uses phys_addr_t and phys_size_t. Also, there were a couple of casting problems in the bootm code that called the LMB functions. Signed-off-by: Andy Fleming <afleming@freescale.com>
Diffstat (limited to 'lib_ppc/bootm.c')
-rw-r--r--lib_ppc/bootm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib_ppc/bootm.c b/lib_ppc/bootm.c
index b0d224e..81803dd 100644
--- a/lib_ppc/bootm.c
+++ b/lib_ppc/bootm.c
@@ -212,7 +212,8 @@ do_bootm_linux(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[],
}
/* Delete the old LMB reservation */
- lmb_free(lmb, (uint64_t)(u32)of_flat_tree, fdt_totalsize(of_flat_tree));
+ lmb_free(lmb, (phys_addr_t)(u32)of_flat_tree,
+ (phys_size_t)fdt_totalsize(of_flat_tree));
/* Calculate the actual size of the fdt */
actualsize = fdt_off_dt_strings(of_flat_tree) +