X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=common%2Fcmd_elf.c;h=8266bba0e6935063263e4db3bb8c983316be5731;hb=4b09701b30fbfcb1097ab12a3065d178dd4f2b86;hp=bf3261256f32c95af740d0916bfe6dabfc587cad;hpb=bfc7bea6adc46e1db2f5a5e3464d7652ed67c864;p=oweals%2Fu-boot.git diff --git a/common/cmd_elf.c b/common/cmd_elf.c index bf3261256f..8266bba0e6 100644 --- a/common/cmd_elf.c +++ b/common/cmd_elf.c @@ -133,10 +133,10 @@ int do_bootvx (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) /* Check to see if we need to tftp the image ourselves before starting */ if ((argc == 2) && (strcmp (argv[1], "tftp") == 0)) { - if (NetLoop (TFTP) <= 0) + if (NetLoop(TFTPGET) <= 0) return 1; - printf ("Automatic boot of VxWorks image at address 0x%08lx ... \n", - addr); + printf("Automatic boot of VxWorks image at address 0x%08lx " + "...\n", addr); } #endif @@ -230,7 +230,8 @@ int do_bootvx (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) (char *) bootaddr); printf ("## Starting vxWorks at 0x%08lx ...\n", addr); - ((void (*)(void)) addr) (); + dcache_disable(); + ((void (*)(int)) addr) (0); puts ("## vxWorks terminated\n"); return 1;