mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 07:15:58 +08:00
Modify FREEBSD USB keyboard drivers for use in RTEMS
This commit is contained in:

committed by
Sebastian Huber

parent
a7415b7f2f
commit
b51279b544
@@ -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
|
||||
|
Reference in New Issue
Block a user