[rtems-libbsd commit] Update due to API changes

Sebastian Huber sebh at rtems.org
Wed May 15 13:44:32 UTC 2019


Module:    rtems-libbsd
Branch:    master
Commit:    16fa6a4651faaa77ef72c7e03d285c143d6e54fa
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=16fa6a4651faaa77ef72c7e03d285c143d6e54fa

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