Skip to content

Commit f4631d5

Browse files
Andrew Boieandrewboie
authored andcommitted
kernel: amend comment in k_thread_create handler
This behavior is expected and not of any concern. Signed-off-by: Andrew Boie <[email protected]>
1 parent d0035f9 commit f4631d5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

kernel/thread.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,9 @@ Z_SYSCALL_HANDLER(k_thread_create,
475475
"stack size overflow (%u+%u)", stack_size,
476476
K_THREAD_STACK_RESERVED));
477477

478-
/* They really ought to be equal, make this more strict? */
478+
/* Testing less-than-or-equal since additional room may have been
479+
* allocated for alignment constraints
480+
*/
479481
Z_OOPS(Z_SYSCALL_VERIFY_MSG(total_size <= stack_object->data,
480482
"stack size %u is too big, max is %u",
481483
total_size, stack_object->data));

0 commit comments

Comments
 (0)