Redirect FREEBSD's kern_yield to RTEMS sched_yield

This commit is contained in:
Kevin Kirspel 2017-05-17 08:40:36 -04:00 committed by Sebastian Huber
parent 15a432108b
commit 427ee3e9eb

View File

@ -1055,10 +1055,11 @@ void fork_exit(void (*)(void *, struct trapframe *), void *,
struct trapframe *); struct trapframe *);
void fork_return(struct thread *, struct trapframe *); void fork_return(struct thread *, struct trapframe *);
int inferior(struct proc *p); int inferior(struct proc *p);
void kern_yield(int);
#ifndef __rtems__ #ifndef __rtems__
void kern_yield(int);
void kick_proc0(void); void kick_proc0(void);
#else /* __rtems__ */ #else /* __rtems__ */
#define kern_yield(x) sched_yield()
#define kick_proc0() #define kick_proc0()
#endif /* __rtems__ */ #endif /* __rtems__ */
void killjobc(void); void killjobc(void);