summaryrefslogtreecommitdiff
path: root/frontends/kolibrios/kolibri_os.c
diff options
context:
space:
mode:
authorAshish Gupta <ashmew2@gmail.com>2017-06-10 08:21:40 +0200
committerAshish Gupta <ashmew2@gmail.com>2017-06-10 08:25:29 +0200
commit2ba19119f6421766f32fbddd07816a151f3ce2fa (patch)
tree581c00f78d23b05e0f33b41d08e1104271f7d504 /frontends/kolibrios/kolibri_os.c
parent4b208e24000f7e449be4c00c0e89ce66b85880f5 (diff)
downloadnetsurf-2ba19119f6421766f32fbddd07816a151f3ce2fa.tar.gz
netsurf-2ba19119f6421766f32fbddd07816a151f3ce2fa.tar.bz2
Move sys_uptime() inside kolibrios dir
Diffstat (limited to 'frontends/kolibrios/kolibri_os.c')
-rw-r--r--frontends/kolibrios/kolibri_os.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/frontends/kolibrios/kolibri_os.c b/frontends/kolibrios/kolibri_os.c
new file mode 100644
index 000000000..52972269a
--- /dev/null
+++ b/frontends/kolibrios/kolibri_os.c
@@ -0,0 +1,11 @@
+unsigned int sys_uptime(void)
+{
+ unsigned int uptime;
+
+ __asm__ __volatile__(
+ "int $0x40 \n\t"
+ :"=a"(uptime)
+ :"a"(26),"b"(9));
+
+ return uptime / 100;
+}