[U-Boot] [PATCH v2] bootm: Move to using a function pointer table for the boot os function
Jean-Christophe PLAGNIOL-VILLARD
plagnioj at jcrosoft.com
Sun Oct 19 20:44:05 CEST 2008
On 13:07 Sun 19 Oct , Kumar Gala wrote:
> This removes a bit of code and makes it easier for the upcoming sub bootm
> command support to call into the proper OS specific handler.
>
> Signed-off-by: Kumar Gala <galak at kernel.crashing.org>
> ---
>
> Fix a bug that showed up in sub command testing in that we didn't sent the relocated
> flag.
>
> common/cmd_bootm.c | 68 +++++++++++++++++++++++----------------------------
> 1 files changed, 31 insertions(+), 37 deletions(-)
>
> diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c
> index b02da3e..956e1a0 100644
> --- a/common/cmd_bootm.c
> +++ b/common/cmd_bootm.c
> @@ -119,6 +119,22 @@ int do_bootelf (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
> static boot_os_fn do_bootm_integrity;
> #endif
>
> +boot_os_fn * boot_os[] = {
> + [IH_OS_LINUX] = do_bootm_linux,
> + [IH_OS_NETBSD] = do_bootm_netbsd,
why not add config to ative or not netbsd, linux and rterms to reduce U-Boot
size?
Best Regards,
J.
More information about the U-Boot
mailing list