[rtems-libbsd commit] Update due to API changes
Sebastian Huber
sebh at rtems.org
Wed May 15 13:45:12 UTC 2019
Module: rtems-libbsd
Branch: 5-freebsd-12
Commit: a87e0f4f5c4795f77dc3956c7d1543f90f7d7710
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=a87e0f4f5c4795f77dc3956c7d1543f90f7d7710
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed May 15 15:43:59 2019 +0200
Update due to API changes
Close #3749.
---
rtemsbsd/rtems/rtems-kernel-epoch.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/rtemsbsd/rtems/rtems-kernel-epoch.c b/rtemsbsd/rtems/rtems-kernel-epoch.c
index 00bca75..229f265 100644
--- a/rtemsbsd/rtems/rtems-kernel-epoch.c
+++ b/rtemsbsd/rtems/rtems-kernel-epoch.c
@@ -278,12 +278,10 @@ epoch_block_handler_preempt(struct ck_epoch *g __unused,
#ifdef RTEMS_SMP
if (cpu_self_index != er->er_cpuid) {
- cpu_set_t set;
+ Processor_mask targets;
- CPU_ZERO(&set);
- CPU_SET((int)er->er_cpuid, &set);
- _SMP_Multicast_action(sizeof(set), &set, epoch_register_mutex,
- &etm);
+ _Processor_mask_From_index(&targets, er->er_cpuid);
+ _SMP_Multicast_action(&targets, epoch_register_mutex, &etm);
} else {
epoch_register_mutex(&etm);
}
More information about the vc
mailing list