forked from Imagelibrary/rtems
tc: bcopy -> memcpy
This commit is contained in:
committed by
Moyano, Gabriel
parent
c54b13b072
commit
f43beb03c2
@@ -80,7 +80,6 @@ ISR_LOCK_DEFINE(, _Timecounter_Lock, "Timecounter")
|
|||||||
_ISR_lock_Release_and_ISR_enable(&_Timecounter_Lock, lock_context)
|
_ISR_lock_Release_and_ISR_enable(&_Timecounter_Lock, lock_context)
|
||||||
#define hz rtems_clock_get_ticks_per_second()
|
#define hz rtems_clock_get_ticks_per_second()
|
||||||
#define printf(...)
|
#define printf(...)
|
||||||
#define bcopy(x, y, z) memcpy(y, x, z);
|
|
||||||
#define log(...)
|
#define log(...)
|
||||||
/* FIXME: https://devel.rtems.org/ticket/2348 */
|
/* FIXME: https://devel.rtems.org/ticket/2348 */
|
||||||
#define ntp_update_second(a, b) do { (void) a; (void) b; } while (0)
|
#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;
|
th->th_generation = 0;
|
||||||
atomic_thread_fence_rel();
|
atomic_thread_fence_rel();
|
||||||
#if defined(RTEMS_SMP)
|
#if defined(RTEMS_SMP)
|
||||||
bcopy(tho, th, offsetof(struct timehands, th_generation));
|
memcpy(th, tho, offsetof(struct timehands, th_generation));
|
||||||
#endif
|
#endif
|
||||||
if (new_boottimebin != NULL)
|
if (new_boottimebin != NULL)
|
||||||
th->th_boottime = *new_boottimebin;
|
th->th_boottime = *new_boottimebin;
|
||||||
|
|||||||
Reference in New Issue
Block a user