From 5fb56f6d959fbd7d6d45a85d2f07900bb780b416 Mon Sep 17 00:00:00 2001 From: hujun5 Date: Mon, 30 Sep 2024 15:03:31 +0800 Subject: [PATCH] sim: add NXSYMBOLS pthread_gettid_np pthread_self reason: enable sim:smp can boot This commit fixes the regression from https://github.com/apache/nuttx/pull/12561 Signed-off-by: hujun5 --- arch/sim/src/nuttx-names.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/sim/src/nuttx-names.in b/arch/sim/src/nuttx-names.in index 2ccb8973acd87..08bb3a7981b01 100644 --- a/arch/sim/src/nuttx-names.in +++ b/arch/sim/src/nuttx-names.in @@ -99,6 +99,7 @@ NXSYMBOLS(pthread_cond_init) NXSYMBOLS(pthread_cond_signal) NXSYMBOLS(pthread_cond_wait) NXSYMBOLS(pthread_create) +NXSYMBOLS(pthread_gettid_np) #if defined(CONFIG_TLS_NELEM) && CONFIG_TLS_NELEM > 0 NXSYMBOLS(pthread_getspecific) NXSYMBOLS(pthread_key_create) @@ -111,6 +112,7 @@ NXSYMBOLS(pthread_mutex_unlock) #if defined(CONFIG_TLS_NELEM) && CONFIG_TLS_NELEM > 0 NXSYMBOLS(pthread_setspecific) #endif +NXSYMBOLS(pthread_self) NXSYMBOLS(pthread_sigmask) NXSYMBOLS(puts) NXSYMBOLS(read)