1 /* 2 * (C) Copyright 2000 3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4 * 5 * SPDX-License-Identifier: GPL-2.0+ 6 */ 7 8 #include <common.h> 9 #include <exports.h> 10 11 int hello_world (int argc, char * const argv[]) 12 { 13 int i; 14 15 /* Print the ABI version */ 16 app_startup(argv); 17 printf ("Example expects ABI version %d\n", XF_VERSION); 18 printf ("Actual U-Boot ABI version %d\n", (int)get_version()); 19 20 printf ("Hello World\n"); 21 22 printf ("argc = %d\n", argc); 23 24 for (i=0; i<=argc; ++i) { 25 printf ("argv[%d] = \"%s\"\n", 26 i, 27 argv[i] ? argv[i] : "<NULL>"); 28 } 29 30 printf ("Hit any key to exit ... "); 31 while (!tstc()) 32 ; 33 /* consume input */ 34 (void) getc(); 35 36 printf ("\n\n"); 37 return (0); 38 } 39