diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-08-04 14:21:34 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-08-12 10:04:11 +0200 |
commit | 59472042ec0ef4b501df675f4df75e377994c92c (patch) | |
tree | 166041afc39d65df712115f6c298db494d75c035 /bsps/arm/fvp | |
parent | Test needed for timer_create with CLOCK_MONOTONC (diff) | |
download | rtems-59472042ec0ef4b501df675f4df75e377994c92c.tar.bz2 |
bsps/arm: More robust SMP start
Do not continue execution on processors which are not configured to prevent the
use of arbitrary memory for the initialization stack.
Diffstat (limited to 'bsps/arm/fvp')
-rw-r--r-- | bsps/arm/fvp/start/bspstarthooks.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/bsps/arm/fvp/start/bspstarthooks.c b/bsps/arm/fvp/start/bspstarthooks.c index f0087efa06..d5e56423f4 100644 --- a/bsps/arm/fvp/start/bspstarthooks.c +++ b/bsps/arm/fvp/start/bspstarthooks.c @@ -66,10 +66,7 @@ void bsp_start_hook_0( void ) * Prevent the fatal errors SMP_FATAL_MULTITASKING_START_ON_INVALID_PROCESSOR * and SMP_FATAL_MULTITASKING_START_ON_UNASSIGNED_PROCESSOR this way. */ - if ( - cpu_index_self >= rtems_configuration_get_maximum_processors() - || !_SMP_Should_start_processor( cpu_index_self ) - ) { + if ( !_SMP_Should_start_processor( cpu_index_self ) ) { while ( true ) { _ARM_Wait_for_event(); } |