]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - common/cmd_bootm.c
[new uImage] Use lmb for bootm allocations
[people/ms/u-boot.git] / common / cmd_bootm.c
index 92c2f4e83aa02eb47ac039b9856a202114b861b6..a32a5a25613215c23f40acb3ed5ec043cc1ef933 100644 (file)
@@ -103,6 +103,12 @@ static boot_os_fn do_bootm_artos;
 ulong load_addr = CFG_LOAD_ADDR;       /* Default Load Address */
 static bootm_headers_t images;         /* pointers to os/initrd/fdt images */
 
+void __board_lmb_reserve(struct lmb *lmb)
+{
+       /* please define platform specific board_lmb_reserve() */
+}
+void board_lmb_reserve(struct lmb *lmb) __attribute__((weak, alias("__board_lmb_reserve")));
+
 
 /*******************************************************************/
 /* bootm - boot application image from image in memory */
@@ -134,6 +140,8 @@ int do_bootm (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        lmb_add(&lmb, 0, gd->bd->bi_memsize);
 #endif
 
+       board_lmb_reserve(&lmb);
+
        /* get kernel image header, start address and length */
        os_hdr = get_kernel (cmdtp, flag, argc, argv,
                        &images, &os_data, &os_len);