mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-26 14:18:20 +00:00
bsps/riscv: Skip init on not configured processors
This commit is contained in:
@@ -44,6 +44,7 @@
|
||||
|
||||
#include <rtems/score/percpu.h>
|
||||
#include <rtems/score/riscv-utility.h>
|
||||
#include <rtems/score/scheduler.h>
|
||||
#include <rtems/score/smpimpl.h>
|
||||
|
||||
#include <libfdt.h>
|
||||
@@ -176,6 +177,11 @@ static void riscv_clint_init(const void *fdt)
|
||||
if (cpu_index >= rtems_configuration_get_maximum_processors()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if ( _Scheduler_Initial_assignments[ cpu_index ].scheduler == NULL ) {
|
||||
/* Skip not configured processor */
|
||||
continue;
|
||||
}
|
||||
#else
|
||||
if (hart_index != RISCV_BOOT_HARTID) {
|
||||
continue;
|
||||
@@ -251,6 +257,11 @@ static void riscv_plic_init(const void *fdt)
|
||||
if (cpu_index >= rtems_configuration_get_maximum_processors()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if ( _Scheduler_Initial_assignments[ cpu_index ].scheduler == NULL ) {
|
||||
/* Skip not configured processor */
|
||||
continue;
|
||||
}
|
||||
#else
|
||||
if (hart_index != RISCV_BOOT_HARTID) {
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user