diff --git a/examples/hello/hello_main.c b/examples/hello/hello_main.c index 953597aa2..a533eff35 100644 --- a/examples/hello/hello_main.c +++ b/examples/hello/hello_main.c @@ -40,6 +40,10 @@ #include #include +#ifdef CONFIG_SMP +# include +#endif + /**************************************************************************** * Public Functions ****************************************************************************/ @@ -50,6 +54,12 @@ int main(int argc, FAR char *argv[]) { +#ifdef CONFIG_SMP + uint32_t cpu = up_cpu_index(); + + printf("Hello, World from CPU%d !!\n", cpu); +#else printf("Hello, World!!\n"); +#endif return 0; }