summaryrefslogtreecommitdiffstats
path: root/freebsd/sys/dev/usb/input/ukbd.c
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd/sys/dev/usb/input/ukbd.c')
-rw-r--r--freebsd/sys/dev/usb/input/ukbd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/freebsd/sys/dev/usb/input/ukbd.c b/freebsd/sys/dev/usb/input/ukbd.c
index 5c6f5583..e463f5ee 100644
--- a/freebsd/sys/dev/usb/input/ukbd.c
+++ b/freebsd/sys/dev/usb/input/ukbd.c
@@ -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