aboutsummaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-12-15 20:14:13 -0700
committerTom Rini <trini@konsulko.com>2023-12-21 16:07:52 -0500
commita48336e5ea19ca0d32dfff1c4eaeececa8d2f570 (patch)
treef91a41bf86cfbfdb9163f55a024c9ce7946293ef /arch/arm
parentc49216253d4357500a96b849bc3a02896093a9a9 (diff)
downloadu-boot-a48336e5ea19ca0d32dfff1c4eaeececa8d2f570.zip
u-boot-a48336e5ea19ca0d32dfff1c4eaeececa8d2f570.tar.gz
u-boot-a48336e5ea19ca0d32dfff1c4eaeececa8d2f570.tar.bz2
bootm: Adjust arguments of boot_os_fn
Adjust boot_os_fn to use struct bootm_info instead of the separate argc, argv and image parameters. Update the handlers accordingly. Few of the functions make use of the arguments, so this improves code size slightly. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/lib/bootm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c
index c562857..f30a483 100644
--- a/arch/arm/lib/bootm.c
+++ b/arch/arm/lib/bootm.c
@@ -12,6 +12,7 @@
*/
#include <common.h>
+#include <bootm.h>
#include <bootstage.h>
#include <command.h>
#include <cpu_func.h>
@@ -378,9 +379,10 @@ static void boot_jump_linux(struct bootm_headers *images, int flag)
* DIFFERENCE: Instead of calling prep and go at the end
* they are called if subcommand is equal 0.
*/
-int do_bootm_linux(int flag, int argc, char *const argv[],
- struct bootm_headers *images)
+int do_bootm_linux(int flag, struct bootm_info *bmi)
{
+ struct bootm_headers *images = bmi->images;
+
/* No need for those on ARM */
if (flag & BOOTM_STATE_OS_BD_T || flag & BOOTM_STATE_OS_CMDLINE)
return -1;