Modify FREEBSD USB keyboard drivers for use in RTEMS

This commit is contained in:
Kevin Kirspel
2017-05-17 08:40:30 -04:00
committed by Sebastian Huber
parent a7415b7f2f
commit b51279b544
3 changed files with 4 additions and 0 deletions

View File

@@ -1994,8 +1994,10 @@ ukbd_ioctl(keyboard_t *kbd, u_long cmd, caddr_t arg)
/*
* XXX Check if someone is calling us from a critical section:
*/
#ifndef __rtems__
if (curthread->td_critnest != 0)
return (EDEADLK);
#endif /* __rtems__ */
/*
* XXX KDGKBSTATE, KDSKBSTATE and KDSETLED can be called from any