diff options
author | Jim Wilson <jimw@sifive.com> | 2017-12-26 23:27:52 +0300 |
---|---|---|
committer | Jim Wilson <jimw@sifive.com> | 2017-12-26 23:27:52 +0300 |
commit | 28d5b98038dd18797375f4ff6a11fecd59809b22 (patch) | |
tree | f6ea701cdba714aa1f0be37ee9d881a7a9939c5b /libgloss/riscv/sys_ftime.c | |
parent | 347b08391132d61702f9004d7b74f742a49907f6 (diff) |
RISC-V: Moved syscalls to separate files to fix aliasing problems.
Diffstat (limited to 'libgloss/riscv/sys_ftime.c')
-rw-r--r-- | libgloss/riscv/sys_ftime.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libgloss/riscv/sys_ftime.c b/libgloss/riscv/sys_ftime.c new file mode 100644 index 000000000..5705592be --- /dev/null +++ b/libgloss/riscv/sys_ftime.c @@ -0,0 +1,10 @@ +#include <machine/syscall.h> +#include <sys/timeb.h> + +/* Get the current time. Only relatively correct. */ +int +_ftime(struct timeb *tp) +{ + tp->time = tp->millitm = 0; + return 0; +} |