[rtems-libbsd commit] Redirect FREEBSD's kern_yield to RTEMS sched_yield
Sebastian Huber
sebh at rtems.org
Fri May 19 07:28:03 UTC 2017
Module: rtems-libbsd
Branch: master
Commit: 427ee3e9eb1c1c01bf8f4245545d3dff83882d00
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=427ee3e9eb1c1c01bf8f4245545d3dff83882d00
Author: Kevin Kirspel <kevin-kirspel at idexx.com>
Date: Wed May 17 08:40:36 2017 -0400
Redirect FREEBSD's kern_yield to RTEMS sched_yield
---
freebsd/sys/sys/proc.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/freebsd/sys/sys/proc.h b/freebsd/sys/sys/proc.h
index 2b58ffe..ea2a8ab 100644
--- a/freebsd/sys/sys/proc.h
+++ b/freebsd/sys/sys/proc.h
@@ -1055,10 +1055,11 @@ void fork_exit(void (*)(void *, struct trapframe *), void *,
struct trapframe *);
void fork_return(struct thread *, struct trapframe *);
int inferior(struct proc *p);
-void kern_yield(int);
#ifndef __rtems__
+void kern_yield(int);
void kick_proc0(void);
#else /* __rtems__ */
+#define kern_yield(x) sched_yield()
#define kick_proc0()
#endif /* __rtems__ */
void killjobc(void);
More information about the vc
mailing list