Changeset 5f02a57 in rtems


Ignore:
Timestamp:
Oct 24, 2017, 9:17:54 AM (20 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
b225aa1
Parents:
4a147518
git-author:
Sebastian Huber <sebastian.huber@…> (10/24/17 09:17:54)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/09/17 07:12:12)
Message:

score: Change _Timecounter_Time_uptime to int32_t

Move basic timecounter API shared with BSD network stack to
<machine/_timecounter.h>.

Update #3185.

Location:
cpukit
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/Makefile.am

    r4a147518 r5f02a57  
    3030include_machine_HEADERS += include/machine/_kernel_time.h
    3131include_machine_HEADERS += include/machine/_kernel_types.h
     32include_machine_HEADERS += include/machine/_timecounter.h
    3233
    3334##  General stuff
  • cpukit/libcsupport/include/machine/_kernel_time.h

    r4a147518 r5f02a57  
    2828#error "must be included via <sys/time.h> in kernel space"
    2929#endif
     30
     31#include <machine/_timecounter.h>
    3032
    3133/* Operations on timespecs */
  • cpukit/libcsupport/preinstall.am

    r4a147518 r5f02a57  
    9696PREINSTALL_FILES += $(PROJECT_INCLUDE)/machine/_kernel_types.h
    9797
     98$(PROJECT_INCLUDE)/machine/_timecounter.h: include/machine/_timecounter.h $(PROJECT_INCLUDE)/machine/$(dirstamp)
     99        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/machine/_timecounter.h
     100PREINSTALL_FILES += $(PROJECT_INCLUDE)/machine/_timecounter.h
     101
  • cpukit/score/include/rtems/score/timecounter.h

    r4a147518 r5f02a57  
    2626#include <sys/time.h>
    2727#include <sys/timetc.h>
     28#include <machine/_timecounter.h>
    2829
    2930#include <rtems/score/isrlock.h>
     
    228229 * second.
    229230 */
    230 extern volatile time_t _Timecounter_Time_uptime;
     231extern volatile int32_t _Timecounter_Time_uptime;
    231232
    232233/**
  • cpukit/score/src/kern_tc.c

    r4a147518 r5f02a57  
    204204#ifndef __rtems__
    205205volatile time_t time_second = 1;
     206volatile time_t time_uptime = 1;
    206207#else /* __rtems__ */
    207208volatile time_t time_second = TOD_SECONDS_1970_THROUGH_1988;
    208 #endif /* __rtems__ */
    209 volatile time_t time_uptime = 1;
     209volatile int32_t time_uptime = 1;
     210#endif /* __rtems__ */
    210211
    211212#ifndef __rtems__
Note: See TracChangeset for help on using the changeset viewer.