blob: bd8b392315bc44135dd7188dae42411bb79c399e [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001/*
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
11int 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}