Added prototypes for sys_stime and getuptime2 (tell the kernel about the

boot time and return the boot time together with the uptime)
This commit is contained in:
Philip Homburg 2007-08-07 11:52:15 +00:00
parent 2a58d1dc58
commit bf6620d285
2 changed files with 2 additions and 0 deletions

View file

@ -50,6 +50,7 @@ _PROTOTYPE( int sys_vm_map, (endpoint_t proc_nr, int do_map,
phys_bytes base, phys_bytes size, phys_bytes offset));
_PROTOTYPE( int sys_readbios, (phys_bytes address, void *buf, size_t size));
_PROTOTYPE( int sys_stime, (time_t boottime));
/* Shorthands for sys_sdevio() system call. */
#define sys_insb(port, proc_nr, buffer, count) \

View file

@ -45,6 +45,7 @@ _PROTOTYPE( void kputc, (int c));
_PROTOTYPE( void report, (char *who, char *mess, int num));
_PROTOTYPE( void panic, (char *who, char *mess, int num));
_PROTOTYPE( int getuptime, (clock_t *ticks));
_PROTOTYPE( int getuptime2, (clock_t *ticks, time_t *boottime));
_PROTOTYPE( int tickdelay, (clock_t ticks));
_PROTOTYPE( int micro_delay_calibrate, (void));
_PROTOTYPE( int micro_delay, (u32_t micros));