Changeset 5e7b6272 in rtems
- Timestamp:
- 05/31/96 23:27:45 (28 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 52a0641
- Parents:
- c238a218
- Files:
-
- 27 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/exec/posix/src/sched.c
rc238a218 r5e7b6272 3 3 */ 4 4 5 #include <assert.h> 5 6 #include <sched.h> 6 7 -
c/src/exec/posix/src/time.c
rc238a218 r5e7b6272 175 175 #ifdef _POSIX_CPUTIME 176 176 case CLOCK_PROCESS_CPUTIME: 177 /* could base this on _ TOD_Ticks_since_boot -- must make set work though*/177 /* could base this on _Watchdog_Ticks_since_boot -- must make set work though*/ 178 178 return POSIX_NOT_IMPLEMENTED(); 179 179 break; -
c/src/exec/posix/src/unistd.c
rc238a218 r5e7b6272 26 26 nanosleep( &tp, &tm ); 27 27 28 return tm ->tv_sec; /* seconds remaining */28 return tm.tv_sec; /* seconds remaining */ 29 29 } 30 30 /* -
c/src/exec/rtems/src/clock.c
rc238a218 r5e7b6272 63 63 64 64 case RTEMS_CLOCK_GET_TICKS_SINCE_BOOT: 65 *(rtems_interval *)time_buffer = _ TOD_Ticks_since_boot;65 *(rtems_interval *)time_buffer = _Watchdog_Ticks_since_boot; 66 66 return RTEMS_SUCCESSFUL; 67 67 -
c/src/exec/rtems/src/rtclock.c
rc238a218 r5e7b6272 63 63 64 64 case RTEMS_CLOCK_GET_TICKS_SINCE_BOOT: 65 *(rtems_interval *)time_buffer = _ TOD_Ticks_since_boot;65 *(rtems_interval *)time_buffer = _Watchdog_Ticks_since_boot; 66 66 return RTEMS_SUCCESSFUL; 67 67 -
c/src/exec/score/headers/tod.h
rc238a218 r5e7b6272 82 82 83 83 /* 84 * The following contains the number of ticks since the85 * system was booted.86 */87 88 SCORE_EXTERN Watchdog_Interval _TOD_Ticks_since_boot;89 90 /*91 84 * The following contains the number of microseconds per tick. 92 85 */ -
c/src/exec/score/headers/watchdog.h
rc238a218 r5e7b6272 83 83 Watchdog_Interval initial; 84 84 Watchdog_Interval delta_interval; 85 Watchdog_Interval start_time; 86 Watchdog_Interval stop_time; 85 87 Watchdog_Service_routine_entry routine; 86 88 Objects_Id id; … … 95 97 SCORE_EXTERN volatile unsigned32 _Watchdog_Sync_level; 96 98 SCORE_EXTERN volatile unsigned32 _Watchdog_Sync_count; 99 100 /* 101 * The following contains the number of ticks since the 102 * system was booted. 103 */ 104 105 SCORE_EXTERN Watchdog_Interval _Watchdog_Ticks_since_boot; 97 106 98 107 /* -
c/src/exec/score/include/rtems/score/tod.h
rc238a218 r5e7b6272 82 82 83 83 /* 84 * The following contains the number of ticks since the85 * system was booted.86 */87 88 SCORE_EXTERN Watchdog_Interval _TOD_Ticks_since_boot;89 90 /*91 84 * The following contains the number of microseconds per tick. 92 85 */ -
c/src/exec/score/include/rtems/score/watchdog.h
rc238a218 r5e7b6272 83 83 Watchdog_Interval initial; 84 84 Watchdog_Interval delta_interval; 85 Watchdog_Interval start_time; 86 Watchdog_Interval stop_time; 85 87 Watchdog_Service_routine_entry routine; 86 88 Objects_Id id; … … 95 97 SCORE_EXTERN volatile unsigned32 _Watchdog_Sync_level; 96 98 SCORE_EXTERN volatile unsigned32 _Watchdog_Sync_count; 99 100 /* 101 * The following contains the number of ticks since the 102 * system was booted. 103 */ 104 105 SCORE_EXTERN Watchdog_Interval _Watchdog_Ticks_since_boot; 97 106 98 107 /* -
c/src/exec/score/inline/rtems/score/tod.inl
rc238a218 r5e7b6272 46 46 { 47 47 _TOD_Current.ticks += 1; 48 _ TOD_Ticks_since_boot += 1;48 _Watchdog_Ticks_since_boot += 1; 49 49 } 50 50 -
c/src/exec/score/inline/tod.inl
rc238a218 r5e7b6272 46 46 { 47 47 _TOD_Current.ticks += 1; 48 _ TOD_Ticks_since_boot += 1;48 _Watchdog_Ticks_since_boot += 1; 49 49 } 50 50 -
c/src/exec/score/macros/rtems/score/tod.inl
rc238a218 r5e7b6272 35 35 #define _TOD_Tickle_ticks() \ 36 36 _TOD_Current.ticks++; \ 37 _ TOD_Ticks_since_boot++37 _Watchdog_Ticks_since_boot++ 38 38 39 39 /*PAGE -
c/src/exec/score/macros/tod.inl
rc238a218 r5e7b6272 35 35 #define _TOD_Tickle_ticks() \ 36 36 _TOD_Current.ticks++; \ 37 _ TOD_Ticks_since_boot++37 _Watchdog_Ticks_since_boot++ 38 38 39 39 /*PAGE -
c/src/exec/score/src/coretod.c
rc238a218 r5e7b6272 38 38 _TOD_Microseconds_per_tick = microseconds_per_tick; 39 39 40 _TOD_Ticks_since_boot = 0;41 40 _TOD_Seconds_since_epoch = 0; 42 41 -
c/src/exec/score/src/tod.c
rc238a218 r5e7b6272 38 38 _TOD_Microseconds_per_tick = microseconds_per_tick; 39 39 40 _TOD_Ticks_since_boot = 0;41 40 _TOD_Seconds_since_epoch = 0; 42 41 -
c/src/exec/score/src/watchdog.c
rc238a218 r5e7b6272 33 33 _Watchdog_Sync_count = 0; 34 34 _Watchdog_Sync_level = 0; 35 _Watchdog_Ticks_since_boot = 0; 36 35 37 _Chain_Initialize_empty( &_Watchdog_Ticks_chain ); 36 38 _Chain_Initialize_empty( &_Watchdog_Seconds_chain ); … … 83 85 break; 84 86 } 87 the_watchdog->stop_time = _Watchdog_Ticks_since_boot; 88 85 89 _ISR_Enable( level ); 86 90 return( previous_state ); … … 201 205 _Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node ); 202 206 207 the_watchdog->start_time = _Watchdog_Ticks_since_boot; 208 203 209 exit_insert: 204 210 _Watchdog_Sync_level = insert_isr_nest_level; -
c/src/tests/sptests/spsize/size.c
rc238a218 r5e7b6272 330 330 /*tod.h*/ (sizeof _TOD_Current) + 331 331 (sizeof _TOD_Seconds_since_epoch) + 332 (sizeof _TOD_Ticks_since_boot) +333 332 (sizeof _TOD_Microseconds_per_tick) + 334 333 (sizeof _TOD_Ticks_per_second) + … … 344 343 /*watchdog.h*/ (sizeof _Watchdog_Sync_level) + 345 344 (sizeof _Watchdog_Sync_count) + 345 (sizeof _Watchdog_Ticks_since_boot) + 346 346 (sizeof _Watchdog_Ticks_chain) + 347 347 (sizeof _Watchdog_Seconds_chain) + -
cpukit/posix/src/sched.c
rc238a218 r5e7b6272 3 3 */ 4 4 5 #include <assert.h> 5 6 #include <sched.h> 6 7 -
cpukit/posix/src/time.c
rc238a218 r5e7b6272 175 175 #ifdef _POSIX_CPUTIME 176 176 case CLOCK_PROCESS_CPUTIME: 177 /* could base this on _ TOD_Ticks_since_boot -- must make set work though*/177 /* could base this on _Watchdog_Ticks_since_boot -- must make set work though*/ 178 178 return POSIX_NOT_IMPLEMENTED(); 179 179 break; -
cpukit/rtems/src/rtclock.c
rc238a218 r5e7b6272 63 63 64 64 case RTEMS_CLOCK_GET_TICKS_SINCE_BOOT: 65 *(rtems_interval *)time_buffer = _ TOD_Ticks_since_boot;65 *(rtems_interval *)time_buffer = _Watchdog_Ticks_since_boot; 66 66 return RTEMS_SUCCESSFUL; 67 67 -
cpukit/score/include/rtems/score/tod.h
rc238a218 r5e7b6272 82 82 83 83 /* 84 * The following contains the number of ticks since the85 * system was booted.86 */87 88 SCORE_EXTERN Watchdog_Interval _TOD_Ticks_since_boot;89 90 /*91 84 * The following contains the number of microseconds per tick. 92 85 */ -
cpukit/score/include/rtems/score/watchdog.h
rc238a218 r5e7b6272 83 83 Watchdog_Interval initial; 84 84 Watchdog_Interval delta_interval; 85 Watchdog_Interval start_time; 86 Watchdog_Interval stop_time; 85 87 Watchdog_Service_routine_entry routine; 86 88 Objects_Id id; … … 95 97 SCORE_EXTERN volatile unsigned32 _Watchdog_Sync_level; 96 98 SCORE_EXTERN volatile unsigned32 _Watchdog_Sync_count; 99 100 /* 101 * The following contains the number of ticks since the 102 * system was booted. 103 */ 104 105 SCORE_EXTERN Watchdog_Interval _Watchdog_Ticks_since_boot; 97 106 98 107 /* -
cpukit/score/inline/rtems/score/tod.inl
rc238a218 r5e7b6272 46 46 { 47 47 _TOD_Current.ticks += 1; 48 _ TOD_Ticks_since_boot += 1;48 _Watchdog_Ticks_since_boot += 1; 49 49 } 50 50 -
cpukit/score/macros/rtems/score/tod.inl
rc238a218 r5e7b6272 35 35 #define _TOD_Tickle_ticks() \ 36 36 _TOD_Current.ticks++; \ 37 _ TOD_Ticks_since_boot++37 _Watchdog_Ticks_since_boot++ 38 38 39 39 /*PAGE -
cpukit/score/src/coretod.c
rc238a218 r5e7b6272 38 38 _TOD_Microseconds_per_tick = microseconds_per_tick; 39 39 40 _TOD_Ticks_since_boot = 0;41 40 _TOD_Seconds_since_epoch = 0; 42 41 -
cpukit/score/src/watchdog.c
rc238a218 r5e7b6272 33 33 _Watchdog_Sync_count = 0; 34 34 _Watchdog_Sync_level = 0; 35 _Watchdog_Ticks_since_boot = 0; 36 35 37 _Chain_Initialize_empty( &_Watchdog_Ticks_chain ); 36 38 _Chain_Initialize_empty( &_Watchdog_Seconds_chain ); … … 83 85 break; 84 86 } 87 the_watchdog->stop_time = _Watchdog_Ticks_since_boot; 88 85 89 _ISR_Enable( level ); 86 90 return( previous_state ); … … 201 205 _Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node ); 202 206 207 the_watchdog->start_time = _Watchdog_Ticks_since_boot; 208 203 209 exit_insert: 204 210 _Watchdog_Sync_level = insert_isr_nest_level; -
testsuites/sptests/spsize/size.c
rc238a218 r5e7b6272 330 330 /*tod.h*/ (sizeof _TOD_Current) + 331 331 (sizeof _TOD_Seconds_since_epoch) + 332 (sizeof _TOD_Ticks_since_boot) +333 332 (sizeof _TOD_Microseconds_per_tick) + 334 333 (sizeof _TOD_Ticks_per_second) + … … 344 343 /*watchdog.h*/ (sizeof _Watchdog_Sync_level) + 345 344 (sizeof _Watchdog_Sync_count) + 345 (sizeof _Watchdog_Ticks_since_boot) + 346 346 (sizeof _Watchdog_Ticks_chain) + 347 347 (sizeof _Watchdog_Seconds_chain) +
Note: See TracChangeset
for help on using the changeset viewer.