That function is meant more for user programs, and should still be rarely used, since it's not portable. Instead, we already know the number of arguments. We just call __lc_fast_syscallN, which also sets errno.
11 lines
170 B
C++
11 lines
170 B
C++
#include <luna/syscall.h>
|
|
#include <sched.h>
|
|
#include <sys/syscall.h>
|
|
|
|
extern "C"
|
|
{
|
|
int sched_yield()
|
|
{
|
|
return (int)__lc_fast_syscall0(SYS_yield);
|
|
}
|
|
} |