$(SYSTEM)(do_nice.o) \
$(SYSTEM)(do_times.o) \
$(SYSTEM)(do_setalarm.o) \
+ $(SYSTEM)(do_stime.o) \
$(SYSTEM)(do_irqctl.o) \
$(SYSTEM)(do_devio.o) \
$(SYSTEM)(do_vdevio.o) \
$(SYSTEM)(do_setalarm.o): do_setalarm.c
$(CC) do_setalarm.c
+$(SYSTEM)(do_stime.o): do_stime.c
+ $(CC) do_stime.c
+
$(SYSTEM)(do_irqctl.o): do_irqctl.c
$(CC) do_irqctl.c
--- /dev/null
+/* The kernel call implemented in this file:
+ * m_type: SYS_STIME
+ *
+ * The parameters for this kernel call are:
+ * m2_l1: T_BOOTITME
+ */
+
+#include "../system.h"
+
+#include <minix/endpoint.h>
+
+/*===========================================================================*
+ * do_stime *
+ *===========================================================================*/
+PUBLIC int do_stime(m_ptr)
+register message *m_ptr; /* pointer to request message */
+{
+ boottime= m_ptr->T_BOOTTIME;
+ return(OK);
+}
* m4_l1: T_ENDPT (get info for this process)
* m4_l1: T_USER_TIME (return values ...)
* m4_l2: T_SYSTEM_TIME
+ * m4_l3: T_BOOTTIME
* m4_l5: T_BOOT_TICKS
*/
m_ptr->T_SYSTEM_TIME = rp->p_sys_time;
}
m_ptr->T_BOOT_TICKS = get_uptime();
+ m_ptr->T_BOOTTIME = boottime;
return(OK);
}