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_wait.c | |
parent | 347b08391132d61702f9004d7b74f742a49907f6 (diff) |
RISC-V: Moved syscalls to separate files to fix aliasing problems.
Diffstat (limited to 'libgloss/riscv/sys_wait.c')
-rw-r--r-- | libgloss/riscv/sys_wait.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libgloss/riscv/sys_wait.c b/libgloss/riscv/sys_wait.c new file mode 100644 index 000000000..25bf44800 --- /dev/null +++ b/libgloss/riscv/sys_wait.c @@ -0,0 +1,10 @@ +#include <machine/syscall.h> +#include <errno.h> + +/* Wait for a child process. Minimal implementation for a system without + processes just causes an error. */ +int _wait(int *status) +{ + errno = ECHILD; + return -1; +} |