RISC-V: Moved syscalls to separate files to fix aliasing problems.
This commit is contained in:
10
libgloss/riscv/sys_fork.c
Normal file
10
libgloss/riscv/sys_fork.c
Normal file
@ -0,0 +1,10 @@
|
||||
#include <machine/syscall.h>
|
||||
#include "internal_syscall.h"
|
||||
|
||||
/* Create a new process. Minimal implementation for a system without
|
||||
processes from newlib documentation. */
|
||||
int _fork()
|
||||
{
|
||||
errno = EAGAIN;
|
||||
return -1;
|
||||
}
|
Reference in New Issue
Block a user