]>
Commit | Line | Data |
---|---|---|
3b285da6 WD |
1 | /* |
2 | * (C) Copyright 2000 | |
3 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. | |
4 | * | |
1a459660 | 5 | * SPDX-License-Identifier: GPL-2.0+ |
3b285da6 WD |
6 | */ |
7 | ||
8 | #include <common.h> | |
27b207fd | 9 | #include <exports.h> |
3b285da6 | 10 | |
54841ab5 | 11 | int hello_world (int argc, char * const argv[]) |
3b285da6 WD |
12 | { |
13 | int i; | |
14 | ||
27b207fd WD |
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()); | |
3b285da6 | 19 | |
27b207fd WD |
20 | printf ("Hello World\n"); |
21 | ||
22 | printf ("argc = %d\n", argc); | |
3b285da6 WD |
23 | |
24 | for (i=0; i<=argc; ++i) { | |
27b207fd | 25 | printf ("argv[%d] = \"%s\"\n", |
3b285da6 WD |
26 | i, |
27 | argv[i] ? argv[i] : "<NULL>"); | |
28 | } | |
29 | ||
27b207fd WD |
30 | printf ("Hit any key to exit ... "); |
31 | while (!tstc()) | |
3b285da6 WD |
32 | ; |
33 | /* consume input */ | |
27b207fd | 34 | (void) getc(); |
3b285da6 | 35 | |
27b207fd | 36 | printf ("\n\n"); |
3b285da6 WD |
37 | return (0); |
38 | } |