RISC-V: Moved syscalls to separate files to fix aliasing problems.
This commit is contained in:
17
libgloss/riscv/sys_sysconf.c
Normal file
17
libgloss/riscv/sys_sysconf.c
Normal file
@@ -0,0 +1,17 @@
|
||||
#include <machine/syscall.h>
|
||||
#include <unistd.h>
|
||||
#include <time.h>
|
||||
|
||||
/* Get configurable system variables. */
|
||||
|
||||
long
|
||||
_sysconf(int name)
|
||||
{
|
||||
switch (name)
|
||||
{
|
||||
case _SC_CLK_TCK:
|
||||
return CLOCKS_PER_SEC;
|
||||
}
|
||||
|
||||
return -1;
|
||||
}
|
Reference in New Issue
Block a user