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: * XXX Check if someone is calling us from a critical section:
*/ */
#ifndef __rtems__
if (curthread->td_critnest != 0) if (curthread->td_critnest != 0)
return (EDEADLK); return (EDEADLK);
#endif /* __rtems__ */
/* /*
* XXX KDGKBSTATE, KDSKBSTATE and KDSETLED can be called from any * XXX KDGKBSTATE, KDSKBSTATE and KDSETLED can be called from any

View File

@@ -0,0 +1 @@
#define KBD_INSTALL_CDEV 1

View File

@@ -0,0 +1 @@
/* EMPTY */