diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2008-02-27 21:51:49 -0600 |
---|---|---|
committer | Marian Balakowicz <m8@semihalf.com> | 2008-02-29 13:15:56 +0100 |
commit | e822d7fc4dd4755d4d0a22f05e33f33d1a0481da (patch) | |
tree | 2b63ad520db48b6e134cd7d5ce67e950f428c1cc /include | |
parent | f5614e7926863bf0225ec860d9b319741a9c4004 (diff) | |
download | bootable_bootloader_goldelico_gta04-e822d7fc4dd4755d4d0a22f05e33f33d1a0481da.zip bootable_bootloader_goldelico_gta04-e822d7fc4dd4755d4d0a22f05e33f33d1a0481da.tar.gz bootable_bootloader_goldelico_gta04-e822d7fc4dd4755d4d0a22f05e33f33d1a0481da.tar.bz2 |
[new uImage] Use lmb for bootm allocations
Convert generic ramdisk_high(), get_boot_cmdline(), get_boot_kbd()
functions over to using lmb for allocation of the ramdisk, command line
and kernel bd info.
Convert PPC specific fdt_relocate() to use lmb for allocation of the device
tree.
Provided a weak function that board code can call to do additional
lmb reserves if needed.
Also introduce the concept of bootmap_base to specify the offset in
physical memory that the bootmap is located at. This is used for
allocations of the cmdline, kernel bd, and device tree as they should
be contained within bootmap_base and bootmap_base + CFG_BOOTMAPSZ.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/image.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/include/image.h b/include/image.h index 5ce2ca4..97eb520 100644 --- a/include/image.h +++ b/include/image.h @@ -391,13 +391,11 @@ int get_ramdisk (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[], ulong *rd_start, ulong *rd_end); #if defined(CONFIG_PPC) || defined(CONFIG_M68K) -ulong ramdisk_high (ulong alloc_current, ulong rd_data, ulong rd_len, - ulong sp_limit, ulong sp, - ulong *initrd_start, ulong *initrd_end); - -ulong get_boot_sp_limit (ulong sp); -ulong get_boot_cmdline (ulong alloc_current, ulong *cmd_start, ulong *cmd_end); -ulong get_boot_kbd (ulong alloc_current, bd_t **kbd); +int ramdisk_high (struct lmb *lmb, ulong rd_data, ulong rd_len, + ulong *initrd_start, ulong *initrd_end); +int get_boot_cmdline (struct lmb *lmb, ulong *cmd_start, ulong *cmd_end, + ulong bootmap_base); +int get_boot_kbd (struct lmb *lmb, bd_t **kbd, ulong bootmap_base); #endif /* CONFIG_PPC || CONFIG_M68K */ /*******************************************************************/ |