Skip to content

Commit

Permalink
kernel: disable THREAD_USERSPACE_LOCAL_DATA if LIBC_ERRNO
Browse files Browse the repository at this point in the history
Thread userspace local data is to be used with storing errno per
thread without thread local storage support. However, if the C
library has native errno support, there is no need to enable
thread userspace local data to store errno per thread. Therefore,
amend the default for CONFIG_THREAD_USERSPACE_LOCAL_DATA so that
it is not enabled if the C library has native errno support.

Signed-off-by: Daniel Leung <[email protected]>
  • Loading branch information
dcpleung authored and nashif committed Oct 25, 2023
1 parent 27dedec commit 88b05b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ config THREAD_CUSTOM_DATA
config THREAD_USERSPACE_LOCAL_DATA
bool
depends on USERSPACE
default y if ERRNO && !ERRNO_IN_TLS
default y if ERRNO && !ERRNO_IN_TLS && !LIBC_ERRNO

config DYNAMIC_THREAD
bool "Support for dynamic threads [EXPERIMENTAL]"
Expand Down

0 comments on commit 88b05b3

Please sign in to comment.