summaryrefslogtreecommitdiff
path: root/nuttx/examples/nxflat/tests/pthread/pthread.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/examples/nxflat/tests/pthread/pthread.c')
-rw-r--r--nuttx/examples/nxflat/tests/pthread/pthread.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/nuttx/examples/nxflat/tests/pthread/pthread.c b/nuttx/examples/nxflat/tests/pthread/pthread.c
index 1cccfa055..6de82a46d 100644
--- a/nuttx/examples/nxflat/tests/pthread/pthread.c
+++ b/nuttx/examples/nxflat/tests/pthread/pthread.c
@@ -75,7 +75,12 @@ enum exit_values_e
* Private Functions
****************************************************************************/
-static void *child_start_routine(void *arg)
+/* NOTE: it is necessary for functions that are referred to by function pointers
+ * pointer to be declared with global scope (at least for ARM). Otherwise,
+ * a relocation type that is not supported by NXFLAT is generated by GCC.
+ */
+
+void *child_start_routine(void *arg)
{
printf("CHILD: started with arg=%d\n", (int)arg);