[rtems commit] tc: bcopy -> memcpy

Jan Sommer jan at rtems.org
Tue Nov 30 14:38:24 UTC 2021


Module:    rtems
Branch:    5
Commit:    f43beb03c29b13e46395ea6ce7bd74d9d0fcb232
Changeset: http://git.rtems.org/rtems/commit/?id=f43beb03c29b13e46395ea6ce7bd74d9d0fcb232

Author:    Mateusz Guzik <mjg at FreeBSD.org>
Date:      Fri May  4 22:48:10 2018 +0000

tc: bcopy -> memcpy

---

 cpukit/score/src/kern_tc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/cpukit/score/src/kern_tc.c b/cpukit/score/src/kern_tc.c
index 6e517f9..28994d8 100644
--- a/cpukit/score/src/kern_tc.c
+++ b/cpukit/score/src/kern_tc.c
@@ -80,7 +80,6 @@ ISR_LOCK_DEFINE(, _Timecounter_Lock, "Timecounter")
   _ISR_lock_Release_and_ISR_enable(&_Timecounter_Lock, lock_context)
 #define hz rtems_clock_get_ticks_per_second()
 #define printf(...)
-#define bcopy(x, y, z) memcpy(y, x, z);
 #define log(...)
 /* FIXME: https://devel.rtems.org/ticket/2348 */
 #define ntp_update_second(a, b) do { (void) a; (void) b; } while (0)
@@ -1533,7 +1532,7 @@ _Timecounter_Windup(struct bintime *new_boottimebin,
 	th->th_generation = 0;
 	atomic_thread_fence_rel();
 #if defined(RTEMS_SMP)
-	bcopy(tho, th, offsetof(struct timehands, th_generation));
+	memcpy(th, tho, offsetof(struct timehands, th_generation));
 #endif
 	if (new_boottimebin != NULL)
 		th->th_boottime = *new_boottimebin;



More information about the vc mailing list