On 2011-06-26, Stanislav Meduna <stano@xxxxxxxxxx> wrote:
> Hi,
>
> the gettimeofday method in compat/posix is currently implemented
> based on cyg_current_time(), settimeofday is missing.
>
> If I understand it correctly the cyg_current_time() is also
> used for timeout processing all over the code so messing
> with its base is not a good idea.
When I needed to adjust the time to keep it in sync with a real-time
clock, I did it at a lower level by adding hooks into the target's HAL
code that allowed me to gradually slew the cyg_current_time() value by
adjusting the length of a system tick by small amounts.
--
Grant Edwards grant.b.edwards Yow! I request a weekend in
at Havana with Phil Silvers!
gmail.com
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
[Linux Embedded]
[U-Boot V2]
[Linux Kernel]
[Linux MIPS]
[Linux ARM]
[Linux for the Blind]
[Linux Resources]
[Photo]
[Yosemite]
[ISDN Cause Codes]
[ECOS Home]
[Site Home]