[RTEMS Project] #2348: Timecounter: Add NTP support

RTEMS trac trac at rtems.org
Thu Oct 28 05:35:06 UTC 2021


#2348: Timecounter: Add NTP support
-----------------------------+-------------------------
 Reporter:  Sebastian Huber  |       Owner:  (none)
     Type:  enhancement      |      Status:  new
 Priority:  normal           |   Milestone:  Indefinite
Component:  score            |     Version:
 Severity:  normal           |  Resolution:
 Keywords:                   |  Blocked By:
 Blocking:                   |
-----------------------------+-------------------------

Comment (by Sebastian Huber):

 Replying to [comment:5 GabrielMoyano]:
 > `kern_ntptime.c` is ported from freebsd-org to freebsd in rtems-libbsd.
 The last commits of this branch https://github.com/GabrielDai/rtems-
 libbsd/tree/ptpd show the changes.
 >
 > Regarding adding the function `ntp_update_second()` in `score`, do you
 know where the function pointer should be updated (to point to
 `ntp_update_second()` in `kern_ntptime.c`)?

 The callback for `ntp_update_second()` is currently not implemented. I
 would like to integrate my patch set which updates `kern_tc.c` to the
 latest FreeBSD version first. I would like to also try to rearrange the
 code a bit in the FreeBSD upstream. For libbsd my approach would be to add
 an internal API to `#include <rtems/score/timecounter.h>` which can be
 used to set the NTP callback in `kern_ntptime.c`.

--
Ticket URL: <http://devel.rtems.org/ticket/2348#comment:7>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list