kernel: amend comment in k_thread_create handler

This behavior is expected and not of any concern.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2019-03-19 10:48:09 -07:00 committed by Andrew Boie
commit f4631d5b43

View file

@ -475,7 +475,9 @@ Z_SYSCALL_HANDLER(k_thread_create,
"stack size overflow (%u+%u)", stack_size,
K_THREAD_STACK_RESERVED));
/* They really ought to be equal, make this more strict? */
/* Testing less-than-or-equal since additional room may have been
* allocated for alignment constraints
*/
Z_OOPS(Z_SYSCALL_VERIFY_MSG(total_size <= stack_object->data,
"stack size %u is too big, max is %u",
total_size, stack_object->data));