From: Philip Homburg Date: Tue, 7 Aug 2007 12:21:40 +0000 (+0000) Subject: Added global variable boottime, prototype for do_stime, and table entry for X-Git-Tag: v3.1.4~347 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/Bv9ARM.ch09.html?a=commitdiff_plain;h=6ef2e9b866dd70094819acc67c88847b8851607d;p=minix.git Added global variable boottime, prototype for do_stime, and table entry for SYS_STIME. --- diff --git a/kernel/glo.h b/kernel/glo.h index 891d54526..fc1e8eb1c 100755 --- a/kernel/glo.h +++ b/kernel/glo.h @@ -48,6 +48,7 @@ EXTERN int do_serial_debug; EXTERN endpoint_t who_e; /* message source endpoint */ EXTERN int who_p; /* message source proc */ EXTERN int sys_call_code; /* kernel call number in SYSTEM */ +EXTERN time_t boottime; /* VM */ EXTERN phys_bytes vm_base; diff --git a/kernel/system.c b/kernel/system.c index 5d565a13c..b527a8eb8 100755 --- a/kernel/system.c +++ b/kernel/system.c @@ -177,6 +177,7 @@ PRIVATE void initialize(void) /* Clock functionality. */ map(SYS_TIMES, do_times); /* get uptime and process times */ map(SYS_SETALARM, do_setalarm); /* schedule a synchronous alarm */ + map(SYS_STIME, do_stime); /* set the boottime */ /* System control. */ map(SYS_ABORT, do_abort); /* abort MINIX */ diff --git a/kernel/system.h b/kernel/system.h index c3ff6a838..0271e8fab 100644 --- a/kernel/system.h +++ b/kernel/system.h @@ -173,6 +173,8 @@ _PROTOTYPE( int do_setalarm, (message *m_ptr) ); #define do_setalarm do_unused #endif +_PROTOTYPE( int do_stime, (message *m_ptr) ); + _PROTOTYPE( int do_safecopy, (message *m_ptr) ); _PROTOTYPE( int do_vsafecopy, (message *m_ptr) ); _PROTOTYPE( int do_iopenable, (message *m_ptr) );