Skip to content

Commit a098f5c

Browse files
committed
Revert "posix: move PTHREAD_STACK_MIN to posix_features"
This reverts commit d6edc75. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
1 parent d410b2c commit a098f5c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

include/zephyr/posix/posix_features.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
#include <zephyr/autoconf.h> /* CONFIG_* */
1212
#include <zephyr/sys/util_macro.h> /* COND_CODE_1() */
13-
#include <zephyr/kernel/thread_stack.h> /* K_KERNEL_STACK_LEN() */
1413

1514
/*
1615
* POSIX Application Environment Profiles (AEP - IEEE Std 1003.13-2003)
@@ -287,7 +286,6 @@ __PICOLIBC_MINOR__ == 8 && __PICOLIBC_PATCHLEVEL__ >= 9)))
287286
#define _POSIX_SIGQUEUE_MAX (32)
288287
#define _POSIX_SSIZE_MAX (32767)
289288
#define _POSIX_SS_REPL_MAX (4)
290-
#define _POSIX_STACK_MIN (K_KERNEL_STACK_LEN(0))
291289
#define _POSIX_STREAM_MAX (8)
292290
#define _POSIX_SYMLINK_MAX (255)
293291
#define _POSIX_SYMLOOP_MAX (8)
@@ -345,7 +343,6 @@ __PICOLIBC_MINOR__ == 8 && __PICOLIBC_PATCHLEVEL__ >= 9)))
345343
#define PTHREAD_DESTRUCTOR_ITERATIONS _POSIX_THREAD_DESTRUCTOR_ITERATIONS
346344
#define PTHREAD_KEYS_MAX _POSIX_THREAD_KEYS_MAX
347345
#define PTHREAD_THREADS_MAX _POSIX_THREAD_THREADS_MAX
348-
#define PTHREAD_STACK_MIN _POSIX_STACK_MIN
349346
#define RTSIG_MAX _POSIX_RTSIG_MAX
350347
#define SEM_NSEMS_MAX _POSIX_SEM_NSEMS_MAX
351348
#define SEM_VALUE_MAX _POSIX_SEM_VALUE_MAX

include/zephyr/posix/pthread.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ extern "C" {
5454
/* Passed to pthread_once */
5555
#define PTHREAD_ONCE_INIT {0}
5656

57+
/* The minimum allowable stack size */
58+
#define PTHREAD_STACK_MIN K_KERNEL_STACK_LEN(0)
59+
5760
/**
5861
* @brief Declare a condition variable as initialized
5962
*

0 commit comments

Comments
 (0)