Hi Emmanuel, On 8 January 2018 at 03:00, Emmanuel Vadot <m...@bidouilliste.com> wrote: > > > Hello Simon, > > On Sun, 7 Jan 2018 21:38:29 -0700 > Simon Glass <s...@chromium.org> wrote: > > > Hi Emmanuel, > > > > On 2 January 2018 at 14:27, Emmanuel Vadot <m...@freebsd.org> wrote: > > > Some commands (like sysboot) might want to call go as they can encounter > > > a raw binary. > > > Make do_go callable for everyone. > > > > > > Signed-off-by: Emmanuel Vadot <m...@freebsd.org> > > > --- > > > cmd/boot.c | 2 +- > > > include/command.h | 4 ++++ > > > 2 files changed, 5 insertions(+), 1 deletion(-) > > > > Can we instead move the code out of do_go() into another function > > which accepts C arguments, and then call that from do_go()? > > Sorry I do not understand what you mean.
int go_exec(ulong addr) { existing code to jump to addr } do_go() { existing code to parse args.... go_exec(addr)l } Then you can call go_eec() from cmd/boot.c Regards, Simon _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot