From 28825512990793c94bf94dd3ce677750c8b2cbb4 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 11 Apr 2021 10:36:32 -0600 Subject: [PATCH] Correct a comment Fix comment in libs/libc/tls/tls_getinfo.c: The TLS data must lie at the beginning of the allocated stack memory for both push-up and push-down stacks. --- libs/libc/tls/tls_getinfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/libc/tls/tls_getinfo.c b/libs/libc/tls/tls_getinfo.c index fec3eb00d2..84e8f8f7ad 100644 --- a/libs/libc/tls/tls_getinfo.c +++ b/libs/libc/tls/tls_getinfo.c @@ -63,8 +63,8 @@ FAR struct tls_info_s *tls_get_info(void) ret = nxsched_get_stackinfo(0, &stackinfo); if (ret >= 0) { - /* This currently assumes a push-down stack. The TLS data lies at the - * lowest address of the stack allocation. + /* The TLS data lies at the lowest address of the stack allocation. + * This is true for both push-up and push-down stacks. */ info = (FAR struct tls_info_s *)stackinfo.stack_alloc_ptr;