Changeset 1fea8c4 in rtems-libbsd


Ignore:
Timestamp:
Dec 12, 2013, 3:52:24 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, eeb3fd5d9b07ac9a2e280cff60a1b762bd273a8d, freebsd-9.3, 1e989998de954bef51e6c19cc3d64d39f32100aa
Children:
e10d1cd
Parents:
1d42ceb
git-author:
Sebastian Huber <sebastian.huber@…> (12/12/13 15:52:24)
git-committer:
Sebastian Huber <sebastian.huber@…> (12/16/13 14:35:51)
Message:

Add support for boottimebin and getbinuptime()

Location:
rtemsbsd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • rtemsbsd/include/rtems/bsd/sys/time.h

    r1d42ceb r1fea8c4  
    294294#define time_uptime rtems_bsd_time_uptime()
    295295#endif /* __rtems__ */
     296extern struct bintime boottimebin;
    296297extern struct timeval boottime;
    297298
     
    356357#endif /* __rtems__ */
    357358
     359#ifndef __rtems__
    358360void    getbinuptime(struct bintime *bt);
     361#else /* __rtems__ */
     362static inline void
     363getbinuptime(struct bintime *bt)
     364{
     365        binuptime(bt);
     366}
     367#endif /* __rtems__ */
    359368void    getnanouptime(struct timespec *tsp);
    360369#ifndef __rtems__
  • rtemsbsd/rtems/rtems-bsd-init.c

    r1d42ceb r1fea8c4  
    7070int maxusers;     /* base tunable */
    7171
     72struct bintime boottimebin;
    7273struct timeval boottime;
    7374
     
    8283
    8384        gettimeofday(&boottime, NULL);
     85        timeval2bintime(&boottime, &boottimebin);
    8486
    8587        sc =  rtems_timer_initiate_server(
Note: See TracChangeset for help on using the changeset viewer.