[rtems-libbsd commit] rtems-bsd-sync.c: Add __RTEMS_VIOLATE_KERNEL_VISIBILITY__

Joel Sherrill joel at rtems.org
Wed Apr 4 20:03:14 UTC 2012


Module:    rtems-libbsd
Branch:    master
Commit:    5d21d7a2ffd43a2b93219be8e83827144781c8e9
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=5d21d7a2ffd43a2b93219be8e83827144781c8e9

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Wed Apr  4 15:05:02 2012 -0500

rtems-bsd-sync.c: Add __RTEMS_VIOLATE_KERNEL_VISIBILITY__

---

 rtemsbsd/src/rtems-bsd-synch.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/rtemsbsd/src/rtems-bsd-synch.c b/rtemsbsd/src/rtems-bsd-synch.c
index eaf62c6..1f8beda 100644
--- a/rtemsbsd/src/rtems-bsd-synch.c
+++ b/rtemsbsd/src/rtems-bsd-synch.c
@@ -20,6 +20,13 @@
  * http://www.rtems.com/license/LICENSE.
  */
 
+/*
+ * This violation is specifically for _Thread_Disable_dispatch
+ * and _Thread_Enable_dispatch. Use of the critical_enter()
+ * and critical_exit() routines should be reviewed.
+ */
+#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__ 
+
 #include <freebsd/machine/rtems-bsd-config.h>
 #include <rtems/score/states.h>
 #include <rtems/score/thread.h>




More information about the vc mailing list