public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db63b11
)
syscall_proc: fix the CLOCK_MONOTONIC timer
author
Alan Cox
<alan@linux.intel.com>
Sat, 23 May 2015 12:53:57 +0000
(13:53 +0100)
committer
Alan Cox
<alan@linux.intel.com>
Sat, 23 May 2015 12:53:57 +0000
(13:53 +0100)
Kernel/syscall_proc.c
patch
|
blob
|
history
diff --git
a/Kernel/syscall_proc.c
b/Kernel/syscall_proc.c
index
dfce06f
..
8b8a64a
100644
(file)
--- a/
Kernel/syscall_proc.c
+++ b/
Kernel/syscall_proc.c
@@
-141,16
+141,16
@@
arg_t _time(void)
switch (type) {
case 0:
rdtime(&t);
- uput(&t, tvec, sizeof(t));
- return (0);
+ break;
case 1:
-
uput(&t.low, &ticks.full, sizeof(ticks))
;
-
uzero(&t.high, sizeof(t.high))
;
-
return 0
;
+
t.low = ticks.full
;
+
t.high = 0
;
+
break
;
default:
udata.u_error = EINVAL;
return -1;
}
+ return uput(&t, tvec, sizeof(t));
}
#undef tvec