summaryrefslogtreecommitdiffstats
path: root/cpukit/score
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2018-05-04 22:48:10 +0000
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-11-15 08:56:53 +0100
commit6a2363f7b787e99d11fe12fb6de5d5cd470c88b3 (patch)
tree050b742cfd048549fcb59db32f0f331ffd518d4a /cpukit/score
parentMove most of the contents of opt_compat.h (diff)
downloadrtems-6a2363f7b787e99d11fe12fb6de5d5cd470c88b3.tar.bz2
tc: bcopy -> memcpy
Diffstat (limited to 'cpukit/score')
-rw-r--r--cpukit/score/src/kern_tc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/cpukit/score/src/kern_tc.c b/cpukit/score/src/kern_tc.c
index 721a074e90..d7547cfe3f 100644
--- a/cpukit/score/src/kern_tc.c
+++ b/cpukit/score/src/kern_tc.c
@@ -97,7 +97,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)
@@ -1550,7 +1549,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;