xiaoxiang781216 commented on a change in pull request #4935:
URL: https://github.com/apache/incubator-nuttx/pull/4935#discussion_r764092470
##########
File path: include/nuttx/arch.h
##########
@@ -1795,6 +1796,40 @@ int up_timer_start(FAR const struct timespec *ts);
* actual implementation may be a MACRO or an inline function.
*/
+/****************************************************************************
+ * Name: up_tls_size
+ *
+ * Description:
+ * Get tls (tls_info_s + tdata + tbss) section size
+ *
+ * Returned Value:
+ * Size of (tdata + tbss)
+ *
+ ****************************************************************************/
+
+#ifdef CONFIG_SCHED_THREAD_LOCAL
+int up_tls_size(void);
+#else
+#define up_tls_size(x) sizeof(*x)
Review comment:
up_tls_size() sizeof(struct tls_info_s)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]