1*83d290c5STom Rini // SPDX-License-Identifier: GPL-2.0+ 21bc15386SPeter Tyser /* 31bc15386SPeter Tyser * (C) Copyright 2000 41bc15386SPeter Tyser * Wolfgang Denk, DENX Software Engineering, wd@denx.de. 51bc15386SPeter Tyser */ 61bc15386SPeter Tyser 71bc15386SPeter Tyser #include <common.h> 81bc15386SPeter Tyser #include <exports.h> 91bc15386SPeter Tyser hello_world(int argc,char * const argv[])1054841ab5SWolfgang Denkint hello_world (int argc, char * const argv[]) 111bc15386SPeter Tyser { 121bc15386SPeter Tyser int i; 131bc15386SPeter Tyser 141bc15386SPeter Tyser /* Print the ABI version */ 151bc15386SPeter Tyser app_startup(argv); 161bc15386SPeter Tyser printf ("Example expects ABI version %d\n", XF_VERSION); 171bc15386SPeter Tyser printf ("Actual U-Boot ABI version %d\n", (int)get_version()); 181bc15386SPeter Tyser 191bc15386SPeter Tyser printf ("Hello World\n"); 201bc15386SPeter Tyser 211bc15386SPeter Tyser printf ("argc = %d\n", argc); 221bc15386SPeter Tyser 231bc15386SPeter Tyser for (i=0; i<=argc; ++i) { 241bc15386SPeter Tyser printf ("argv[%d] = \"%s\"\n", 251bc15386SPeter Tyser i, 261bc15386SPeter Tyser argv[i] ? argv[i] : "<NULL>"); 271bc15386SPeter Tyser } 281bc15386SPeter Tyser 291bc15386SPeter Tyser printf ("Hit any key to exit ... "); 301bc15386SPeter Tyser while (!tstc()) 311bc15386SPeter Tyser ; 321bc15386SPeter Tyser /* consume input */ 331bc15386SPeter Tyser (void) getc(); 341bc15386SPeter Tyser 351bc15386SPeter Tyser printf ("\n\n"); 361bc15386SPeter Tyser return (0); 371bc15386SPeter Tyser } 38