Added global variable boottime, prototype for do_stime, and table entry for
SYS_STIME.
This commit is contained in:
parent
fab77fd01f
commit
6ef2e9b866
3 changed files with 4 additions and 0 deletions
|
@ -48,6 +48,7 @@ EXTERN int do_serial_debug;
|
||||||
EXTERN endpoint_t who_e; /* message source endpoint */
|
EXTERN endpoint_t who_e; /* message source endpoint */
|
||||||
EXTERN int who_p; /* message source proc */
|
EXTERN int who_p; /* message source proc */
|
||||||
EXTERN int sys_call_code; /* kernel call number in SYSTEM */
|
EXTERN int sys_call_code; /* kernel call number in SYSTEM */
|
||||||
|
EXTERN time_t boottime;
|
||||||
|
|
||||||
/* VM */
|
/* VM */
|
||||||
EXTERN phys_bytes vm_base;
|
EXTERN phys_bytes vm_base;
|
||||||
|
|
|
@ -177,6 +177,7 @@ PRIVATE void initialize(void)
|
||||||
/* Clock functionality. */
|
/* Clock functionality. */
|
||||||
map(SYS_TIMES, do_times); /* get uptime and process times */
|
map(SYS_TIMES, do_times); /* get uptime and process times */
|
||||||
map(SYS_SETALARM, do_setalarm); /* schedule a synchronous alarm */
|
map(SYS_SETALARM, do_setalarm); /* schedule a synchronous alarm */
|
||||||
|
map(SYS_STIME, do_stime); /* set the boottime */
|
||||||
|
|
||||||
/* System control. */
|
/* System control. */
|
||||||
map(SYS_ABORT, do_abort); /* abort MINIX */
|
map(SYS_ABORT, do_abort); /* abort MINIX */
|
||||||
|
|
|
@ -173,6 +173,8 @@ _PROTOTYPE( int do_setalarm, (message *m_ptr) );
|
||||||
#define do_setalarm do_unused
|
#define do_setalarm do_unused
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
_PROTOTYPE( int do_stime, (message *m_ptr) );
|
||||||
|
|
||||||
_PROTOTYPE( int do_safecopy, (message *m_ptr) );
|
_PROTOTYPE( int do_safecopy, (message *m_ptr) );
|
||||||
_PROTOTYPE( int do_vsafecopy, (message *m_ptr) );
|
_PROTOTYPE( int do_vsafecopy, (message *m_ptr) );
|
||||||
_PROTOTYPE( int do_iopenable, (message *m_ptr) );
|
_PROTOTYPE( int do_iopenable, (message *m_ptr) );
|
||||||
|
|
Loading…
Reference in a new issue