-
Notifications
You must be signed in to change notification settings - Fork 7.5k
kernel: demote K_THREAD_STACK_BUFFER() to private #15195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kernel: demote K_THREAD_STACK_BUFFER() to private #15195
Conversation
8c50ffa
to
70f6a47
Compare
All checks are passing now. Review history of this comment for details about previous failed status. |
70f6a47
to
4120d3d
Compare
include/kernel.h
Outdated
/* Stack Start - Identical to K_THREAD_STACK_BUFFER() on the stack | ||
* object. Represents thread-writable stack area without any extras. | ||
*/ | ||
/* Represents thread-writable stack area without any extras */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment is more suitable for the documentation of the whole thread_stack_info struct
As is. it refers to the start
variable.
Therefore, you could perhaps update it as "Stack start. - Represents the start address of the thread-writable stack area..."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me . I left only a comment for documentation update
This macro is slated for complete removal, as it's not possible on arches with an MPU stack guard to know the true buffer bounds without also knowing the runtime state of its associated thread. As removing this completely would be invasive to where we are in the 1.14 release, demote to a private kernel Z_ API instead. The current way that the macro is being used internally will not cause any undue harm, we just don't want any external code depending on it. The final work to remove this (and overhaul stack specification in general) will take place in 1.15 in the context of zephyrproject-rtos#14269 Fixes: zephyrproject-rtos#14766 Signed-off-by: Andrew Boie <[email protected]>
4120d3d
to
df96ef7
Compare
This macro is slated for complete removal, as it's not possible
on arches with an MPU stack guard to know the true buffer bounds
without also knowing the runtime state of its associated thread.
As removing this completely would be invasive to where we are
in the 1.14 release, demote to a private kernel Z_ API instead.
The current way that the macro is being used internally will
not cause any undue harm, we just don't want any external code
depending on it.
The final work to remove this (and overhaul stack specification in
general) will take place in 1.15 in the context of #14269
Fixes: #14766
Signed-off-by: Andrew Boie [email protected]