Changeset 7f1c620 in mainline for generic/src/time
- Timestamp:
- 2006-07-04T17:17:56Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0ffa3ef5
- Parents:
- 991779c5
- Location:
- generic/src/time
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/time/clock.c
r991779c5 r7f1c620 58 58 /* Pointers to public variables with time */ 59 59 struct ptime { 60 __nativeseconds1;61 __nativeuseconds;62 __nativeseconds2;60 unative_t seconds1; 61 unative_t useconds; 62 unative_t seconds2; 63 63 }; 64 64 struct ptime *public_time; … … 66 66 * seconds correctly 67 67 */ 68 static __nativesecfrag = 0;68 static unative_t secfrag = 0; 69 69 70 70 /** Initialize realtime clock counter … … 91 91 public_time->useconds = 0; 92 92 93 sysinfo_set_item_val("clock.faddr", NULL, ( __native)faddr);93 sysinfo_set_item_val("clock.faddr", NULL, (unative_t)faddr); 94 94 } 95 95 … … 166 166 167 167 if (THREAD) { 168 __u64ticks;168 uint64_t ticks; 169 169 170 170 spinlock_lock(&CPU->lock); -
generic/src/time/delay.c
r991779c5 r7f1c620 50 50 * @param usec Number of microseconds to sleep. 51 51 */ 52 void delay( __u32usec)52 void delay(uint32_t usec) 53 53 { 54 54 ipl_t ipl; -
generic/src/time/timeout.c
r991779c5 r7f1c620 104 104 * 105 105 */ 106 void timeout_register(timeout_t *t, __u64time, timeout_handler_t f, void *arg)106 void timeout_register(timeout_t *t, uint64_t time, timeout_handler_t f, void *arg) 107 107 { 108 108 timeout_t *hlp = NULL; 109 109 link_t *l, *m; 110 110 ipl_t ipl; 111 __u64sum;111 uint64_t sum; 112 112 113 113 ipl = interrupts_disable();
Note:
See TracChangeset
for help on using the changeset viewer.