Skip to content

Commit

Permalink
kernel: remove outdated comment in K_THREAD_DEFINE()
Browse files Browse the repository at this point in the history
The internal comment in K_THREAD_DEFINE() on alignment needed
for x86 is outdated. The alignment is taken care of by
the iterable sections in linker scripts. So remove.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
  • Loading branch information
dcpleung authored and nashif committed May 25, 2023
1 parent 6b4920b commit 1645537
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions include/zephyr/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -714,11 +714,6 @@ struct _static_thread_data {
* affect anything in the OS per se, but consider it bad practice.
* Use a SYS_INIT() callback if you need to run code before entrance
* to the application main().
*
* @internal It has been observed that the x86 compiler by default aligns
* these _static_thread_data structures to 32-byte boundaries, thereby
* wasting space. To work around this, force a 4-byte alignment.
*
*/
#define K_THREAD_DEFINE(name, stack_size, \
entry, p1, p2, p3, \
Expand Down

0 comments on commit 1645537

Please sign in to comment.