mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-28 15:19:21 +08:00
score: Remove _Stack_Ensure_minimum() call
This call is superfluous since _Thread_Initialize() will do this also. Update #3835.
This commit is contained in:
@@ -21,7 +21,6 @@
|
||||
#include <rtems/score/threadimpl.h>
|
||||
#include <rtems/score/assert.h>
|
||||
#include <rtems/score/schedulerimpl.h>
|
||||
#include <rtems/score/stackimpl.h>
|
||||
#include <rtems/score/sysstate.h>
|
||||
#include <rtems/score/userextimpl.h>
|
||||
#include <rtems/config.h>
|
||||
@@ -55,7 +54,7 @@ static void _Thread_Create_idle_for_CPU( Per_CPU_Control *cpu )
|
||||
idle,
|
||||
scheduler,
|
||||
NULL, /* allocate the stack */
|
||||
_Stack_Ensure_minimum( rtems_configuration_get_idle_task_stack_size() ),
|
||||
rtems_configuration_get_idle_task_stack_size(),
|
||||
CPU_IDLE_TASK_IS_FP,
|
||||
_Scheduler_Map_priority( scheduler, scheduler->maximum_priority ),
|
||||
true, /* preemptable */
|
||||
|
||||
Reference in New Issue
Block a user