[PATCH 05/11] Modify FREEBSD USB keyboard drivers for use in RTEMS

Sebastian Huber sebastian.huber at embedded-brains.de
Wed May 17 05:56:01 UTC 2017


On 15/05/17 19:26, Kevin Kirspel wrote:
> +#ifndef __rtems__
>   			kern_yield(PRI_UNCHANGED);
> +#else /* __rtems__ */
> +			sched_yield();
> +#endif /* __rtems__ */

Please add a kern_yield() instead.

diff --git a/freebsd/sys/sys/proc.h b/freebsd/sys/sys/proc.h
index 7af3dc2..4590f1a 100644
--- a/freebsd/sys/sys/proc.h
+++ b/freebsd/sys/sys/proc.h
@@ -1053,10 +1053,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);

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.




More information about the devel mailing list