[rtems-libbsd commit] Modify FREEBSD USB keyboard drivers for use in RTEMS
Sebastian Huber
sebh at rtems.org
Fri May 19 07:28:03 UTC 2017
Module: rtems-libbsd
Branch: master
Commit: b51279b544a9edb25a6627e6204f87b12c6de8fa
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=b51279b544a9edb25a6627e6204f87b12c6de8fa
Author: Kevin Kirspel <kevin-kirspel at idexx.com>
Date: Wed May 17 08:40:30 2017 -0400
Modify FREEBSD USB keyboard drivers for use in RTEMS
---
freebsd/sys/dev/usb/input/ukbd.c | 2 ++
rtemsbsd/include/rtems/bsd/local/opt_kbd.h | 1 +
rtemsbsd/include/rtems/bsd/local/opt_ukbd.h | 1 +
3 files changed, 4 insertions(+)
diff --git a/freebsd/sys/dev/usb/input/ukbd.c b/freebsd/sys/dev/usb/input/ukbd.c
index 5c6f558..e463f5e 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
diff --git a/rtemsbsd/include/rtems/bsd/local/opt_kbd.h b/rtemsbsd/include/rtems/bsd/local/opt_kbd.h
new file mode 100644
index 0000000..a068675
--- /dev/null
+++ b/rtemsbsd/include/rtems/bsd/local/opt_kbd.h
@@ -0,0 +1 @@
+#define KBD_INSTALL_CDEV 1
diff --git a/rtemsbsd/include/rtems/bsd/local/opt_ukbd.h b/rtemsbsd/include/rtems/bsd/local/opt_ukbd.h
new file mode 100644
index 0000000..936ffd8
--- /dev/null
+++ b/rtemsbsd/include/rtems/bsd/local/opt_ukbd.h
@@ -0,0 +1 @@
+/* EMPTY */
More information about the vc
mailing list