d91f738bd8
Please note that this information is for use by system services only! The clock facility is not ready to be used directly by userland, and thus, this kernel page extension is NOT part of the userland ABI. For service programmers' convenience, change the prototype of the getticks(3) to return the uptime clock value directly, since the call can no longer fail. Correct the sys_times(2) reply message to use the right field type for the boot time. Restructure the kernel internals a bit so as to have all the clock stuff closer together. Change-Id: Ifc050b7bd253aecbe46e3bd7d7cc75bd86e45555
19 lines
522 B
C
19 lines
522 B
C
/* The kernel call implemented in this file:
|
|
* m_type: SYS_STIME
|
|
*
|
|
* The parameters for this kernel call are:
|
|
* m_lsys_krn_sys_stime.boot_time
|
|
*/
|
|
|
|
#include "kernel/system.h"
|
|
|
|
#include <minix/endpoint.h>
|
|
|
|
/*===========================================================================*
|
|
* do_stime *
|
|
*===========================================================================*/
|
|
int do_stime(struct proc * caller, message * m_ptr)
|
|
{
|
|
set_boottime(m_ptr->m_lsys_krn_sys_stime.boot_time);
|
|
return(OK);
|
|
}
|