kernel: remove deprecated macro K_THREAD_STACK_MEMBER
Remove the macro K_THREAD_STACK_MEMBER that has been deprecated since v3.5.0. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
ad208e1e7c
commit
8d53b506a2
2 changed files with 3 additions and 22 deletions
|
@ -38,6 +38,9 @@ API Changes
|
|||
Removed APIs in this release
|
||||
============================
|
||||
|
||||
* Macro ``K_THREAD_STACK_MEMBER``, deprecated since v3.5.0, has been removed.
|
||||
Use :c:macro:`K_KERNEL_STACK_MEMBER` instead.
|
||||
|
||||
Deprecated in this release
|
||||
==========================
|
||||
|
||||
|
|
|
@ -293,7 +293,6 @@ static inline char *K_KERNEL_STACK_BUFFER(k_thread_stack_t *sym)
|
|||
#define K_THREAD_STACK_LEN K_KERNEL_STACK_LEN
|
||||
#define K_THREAD_STACK_DEFINE K_KERNEL_STACK_DEFINE
|
||||
#define K_THREAD_STACK_ARRAY_DEFINE K_KERNEL_STACK_ARRAY_DEFINE
|
||||
#define K_THREAD_STACK_MEMBER K_KERNEL_STACK_MEMBER
|
||||
#define K_THREAD_STACK_BUFFER K_KERNEL_STACK_BUFFER
|
||||
#define K_THREAD_STACK_DECLARE K_KERNEL_STACK_DECLARE
|
||||
#define K_THREAD_STACK_ARRAY_DECLARE K_KERNEL_STACK_ARRAY_DECLARE
|
||||
|
@ -613,27 +612,6 @@ static inline char *K_KERNEL_STACK_BUFFER(k_thread_stack_t *sym)
|
|||
K_THREAD_STACK_ARRAY_DEFINE(sym, nmemb, size)
|
||||
#endif /* CONFIG_LINKER_USE_PINNED_SECTION */
|
||||
|
||||
/**
|
||||
* @brief Define an embedded stack memory region
|
||||
*
|
||||
* Used for stacks embedded within other data structures. Use is highly
|
||||
* discouraged but in some cases necessary. For memory protection scenarios,
|
||||
* it is very important that any RAM preceding this member not be writable
|
||||
* by threads else a stack overflow will lead to silent corruption. In other
|
||||
* words, the containing data structure should live in RAM owned by the kernel.
|
||||
*
|
||||
* A user thread can only be started with a stack defined in this way if
|
||||
* the thread starting it is in supervisor mode.
|
||||
*
|
||||
* @deprecated This is now deprecated, as stacks defined in this way are not
|
||||
* usable from user mode. Use K_KERNEL_STACK_MEMBER.
|
||||
*
|
||||
* @param sym Thread stack symbol name
|
||||
* @param size Size of the stack memory region
|
||||
*/
|
||||
#define K_THREAD_STACK_MEMBER(sym, size) __DEPRECATED_MACRO \
|
||||
Z_THREAD_STACK_DEFINE_IN(sym, size,)
|
||||
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue