@kiwichris A few things:
(1) That comment was written by Frank Kühndel in 2021. It does not state which type is 32-bits and fails. I cannot figure out what is magical about that date/time the comment cites. Even if it is correct, the comment needs more detail. We need to ask @frank_k for clarification.
7bbbe4225c9 cpukit/include/rtems/score/todimpl.h (Frank Kühndel 2021-04-08 15:41:15 +0200 161) * 32 bits can accept as latest point in time 2106-Feb-7 6:28:15
(2) To get this completely right, the function _TOD_Get_leap_year_index() appears to be incorrect for anything past 2100. Uses of this function need to be checked I think.
(3) There are no TOD hooks except in the tests. This only makes sense to use if the application wants to set another clock like an RTC when the RTEMS TOD is set. I added it for the use case of being virtualized and the integrator wanting setting the TOD to propagate to the host environment. So there should be no hooks to run.