diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-04-11 09:33:39 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-04-11 09:38:18 +0200 |
commit | c6261f97870562d4c797cfb1ff1ba0affb85a916 (patch) | |
tree | 6c4863274beb1b98871e347e66a83d43dc0a777d /rtemsbsd/rtems | |
parent | Import FreeBSD license files. (diff) | |
download | rtems-libbsd-c6261f97870562d4c797cfb1ff1ba0affb85a916.tar.bz2 |
Update due to API changes
Diffstat (limited to 'rtemsbsd/rtems')
-rw-r--r-- | rtemsbsd/rtems/rtems-kernel-epoch.c | 4 | ||||
-rw-r--r-- | rtemsbsd/rtems/rtems-kernel-init.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/rtemsbsd/rtems/rtems-kernel-epoch.c b/rtemsbsd/rtems/rtems-kernel-epoch.c index e8e24060..00bca75a 100644 --- a/rtemsbsd/rtems/rtems-kernel-epoch.c +++ b/rtemsbsd/rtems/rtems-kernel-epoch.c @@ -72,7 +72,7 @@ _bsd_epoch_init(epoch_t epoch, uintptr_t pcpu_record_offset, int flags) epoch->e_flags = flags; epoch->e_pcpu_record_offset = pcpu_record_offset; - cpu_count = rtems_get_processor_count(); + cpu_count = rtems_scheduler_get_processor_maximum(); for (cpu_index = 0; cpu_index < cpu_count; ++cpu_index) { Per_CPU_Control *cpu; @@ -153,7 +153,7 @@ epoch_sysinit(void) uint32_t cpu_count; uint32_t cpu_index; - cpu_count = rtems_get_processor_count(); + cpu_count = rtems_scheduler_get_processor_maximum(); for (cpu_index = 0; cpu_index < cpu_count; ++cpu_index) { Per_CPU_Control *cpu; diff --git a/rtemsbsd/rtems/rtems-kernel-init.c b/rtemsbsd/rtems/rtems-kernel-init.c index 8432d5db..4d9851ea 100644 --- a/rtemsbsd/rtems/rtems-kernel-init.c +++ b/rtemsbsd/rtems/rtems-kernel-init.c @@ -145,7 +145,7 @@ rtems_bsd_initialize(void) sbt_timethreshold = bttosbt(bt_timethreshold); sbt_tickthreshold = bttosbt(bt_tickthreshold); maxusers = 1; - maxid_maxcpus = (int) rtems_get_processor_count(); + maxid_maxcpus = (int) rtems_scheduler_get_processor_maximum(); mkdir("/etc", S_IRWXU | S_IRWXG | S_IRWXO); |