Index: kernel/Makefile
===================================================================
--- kernel/Makefile	(revision e257ae3afe1ceec7d39e238296d4efc444331167)
+++ kernel/Makefile	(revision 9d491a79496784dc1a5d4cb56223fbd9702fa819)
@@ -231,5 +231,6 @@
 	generic/src/sysinfo/sysinfo.c \
 	generic/src/ps/ps.c \
-	generic/src/ps/load.c
+	generic/src/ps/load.c \
+	generic/src/ps/uptime.c
 
 ## Kernel console support
Index: kernel/generic/include/ps/uptime.h
===================================================================
--- kernel/generic/include/ps/uptime.h	(revision 9d491a79496784dc1a5d4cb56223fbd9702fa819)
+++ kernel/generic/include/ps/uptime.h	(revision 9d491a79496784dc1a5d4cb56223fbd9702fa819)
@@ -0,0 +1,43 @@
+/*
+ * Copyright (c) 2010 Stanislav Kozina
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * - Redistributions of source code must retain the above copyright
+ *   notice, this list of conditions and the following disclaimer.
+ * - Redistributions in binary form must reproduce the above copyright
+ *   notice, this list of conditions and the following disclaimer in the
+ *   documentation and/or other materials provided with the distribution.
+ * - The name of the author may not be used to endorse or promote products
+ *   derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+/** @addtogroup generic
+ * @{
+ */
+/** @file
+ */
+
+#ifndef KERN_UPTIME_H_
+#define KERN_UPTIME_H_
+
+extern int sys_ps_get_uptime(uint64_t *user_load);
+
+#endif
+
+/** @}
+ */
Index: kernel/generic/include/syscall/syscall.h
===================================================================
--- kernel/generic/include/syscall/syscall.h	(revision e257ae3afe1ceec7d39e238296d4efc444331167)
+++ kernel/generic/include/syscall/syscall.h	(revision 9d491a79496784dc1a5d4cb56223fbd9702fa819)
@@ -91,4 +91,5 @@
 	SYS_PS_GET_TASK_INFO,
 	SYS_PS_GET_THREADS,
+	SYS_PS_GET_UPTIME,
 	SYS_PS_GET_LOAD,
 
Index: kernel/generic/src/ps/uptime.c
===================================================================
--- kernel/generic/src/ps/uptime.c	(revision 9d491a79496784dc1a5d4cb56223fbd9702fa819)
+++ kernel/generic/src/ps/uptime.c	(revision 9d491a79496784dc1a5d4cb56223fbd9702fa819)
@@ -0,0 +1,51 @@
+/*
+ * Copyright (c) 2010 Stanislav Kozina
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * - Redistributions of source code must retain the above copyright
+ *   notice, this list of conditions and the following disclaimer.
+ * - Redistributions in binary form must reproduce the above copyright
+ *   notice, this list of conditions and the following disclaimer in the
+ *   documentation and/or other materials provided with the distribution.
+ * - The name of the author may not be used to endorse or promote products
+ *   derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+/** @addtogroup genericuptime
+ * @{
+ */
+
+/**
+ * @file
+ * @brief	Get system uptime.
+ */
+
+#include <time/clock.h>
+#include <syscall/copy.h>
+#include <ps/uptime.h>
+
+int sys_ps_get_uptime(uint64_t *user_uptime)
+{
+	uint64_t seconds = uptime->seconds1;
+	copy_to_uspace(user_uptime, &seconds, sizeof(uint64_t));
+	return 0;
+}
+
+
+/** @}
+ */
Index: kernel/generic/src/syscall/syscall.c
===================================================================
--- kernel/generic/src/syscall/syscall.c	(revision e257ae3afe1ceec7d39e238296d4efc444331167)
+++ kernel/generic/src/syscall/syscall.c	(revision 9d491a79496784dc1a5d4cb56223fbd9702fa819)
@@ -56,4 +56,5 @@
 #include <ps/ps.h>
 #include <ps/load.h>
+#include <ps/uptime.h>
 
 /** Dispatch system call */
@@ -172,4 +173,5 @@
 	(syshandler_t) sys_ps_get_task_info,
 	(syshandler_t) sys_ps_get_threads,
+	(syshandler_t) sys_ps_get_uptime,
 	(syshandler_t) sys_ps_get_load,
 	
