]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
Clarify bootm OS arguments
authorSimon Glass <sjg@chromium.org>
Tue, 11 Jun 2013 18:14:46 +0000 (11:14 -0700)
committerTom Rini <trini@ti.com>
Wed, 26 Jun 2013 14:16:41 +0000 (10:16 -0400)
commit983c72f479173bced296f7292b4a9fbef9d17688
treea484e1ec6bc6d48ce0957c87df79357f319e618d
parent37544a6dabdaf474726ed8374c58598f61e3fd71
Clarify bootm OS arguments

At present the arguments to bootm are processed in a somewhat confusing
way. Sub-functions must know how many arguments their calling functions
have processed, and the OS boot function must also have this information.
Also it isn't obvious that 'bootm' and 'bootm start' provide arguments in
the same way.

Adjust the code so that arguments are removed from the list before calling
a sub-function. This means that all functions can know that argv[0] is the
first argument of which they need to take notice.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/microblaze/lib/bootm.c
arch/nios2/lib/bootm.c
arch/openrisc/lib/bootm.c
common/cmd_bootm.c
common/image-fdt.c
common/image.c