You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/06/07 11:52:10 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 commented on a diff in pull request #6377: sched/tls: Shouldn't get tls info directly from sp in kernel space

xiaoxiang781216 commented on code in PR #6377:
URL: https://github.com/apache/incubator-nuttx/pull/6377#discussion_r891120929


##########
include/nuttx/tls.h:
##########
@@ -304,7 +304,7 @@ uintptr_t task_tls_get_value(int tlsindex);
 
 #if defined(up_tls_info)
 #  define tls_get_info() up_tls_info()
-#elif defined(CONFIG_TLS_ALIGNED)
+if defined(CONFIG_TLS_ALIGNED) && !defined(__KERNEL__)

Review Comment:
   sorry, I made a typo error.:(, it's strange that the compiler can pass without error.



-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org