# HG changeset patch # User msalter # Date 1049472223 0 # Node ID 6aa5728bb6a0ee554c18d36eb6c3625255413307 # Parent a289defa82f03e0e5a1aba055738557e61c4116a go command tweak diff --git a/packages/redboot/current/ChangeLog b/packages/redboot/current/ChangeLog --- a/packages/redboot/current/ChangeLog +++ b/packages/redboot/current/ChangeLog @@ -2,6 +2,7 @@ 2003-04-04 Mark Salter diff --git a/packages/redboot/current/src/main.c b/packages/redboot/current/src/main.c --- a/packages/redboot/current/src/main.c +++ b/packages/redboot/current/src/main.c @@ -424,7 +424,7 @@ return_to_redboot(int status) void do_go(int argc, char *argv[]) { - int i, cur; + int i, cur, num_options; unsigned long entry; unsigned long oldints; bool wait_time_set; @@ -440,9 +440,13 @@ do_go(int argc, char *argv[]) (void **)&wait_time, (bool *)&wait_time_set, "wait timeout"); init_opts(&opts[1], 'c', false, OPTION_ARG_TYPE_FLG, (void **)&cache_enabled, (bool *)0, "go with caches enabled"); + num_options = 2; +#ifdef CYGPKG_IO_ETH_DRIVERS init_opts(&opts[2], 'n', false, OPTION_ARG_TYPE_FLG, (void **)&stop_net, (bool *)0, "go with network driver stopped"); - if (!scan_opts(argc, argv, 1, opts, 3, (void *)&entry, OPTION_ARG_TYPE_NUM, "starting address")) + num_options++; +#endif + if (!scan_opts(argc, argv, 1, opts, num_options, (void *)&entry, OPTION_ARG_TYPE_NUM, "starting address")) { return; }