kernel: centralize new thread priority check
This was being done inconsistently in arch_new_thread(), just move to the core kernel. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
c0df99cc77
commit
1f6f977f05
8 changed files with 2 additions and 10 deletions
|
@ -18,7 +18,6 @@ void arch_new_thread(struct k_thread *thread, k_thread_stack_t *stack,
|
|||
{
|
||||
void *switch_entry;
|
||||
|
||||
Z_ASSERT_VALID_PRIO(priority, entry);
|
||||
z_new_thread_init(thread, Z_THREAD_STACK_BUFFER(stack), stack_size);
|
||||
|
||||
#if CONFIG_X86_STACK_PROTECTION
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue