change log for rtems (2011-07-01)
rtems-vc at rtems.org
rtems-vc at rtems.org
Fri Jul 1 15:11:14 UTC 2011
*jennifer*:
2011-07-01 Jennifer Averett <Jennifer.Averett at OARcorp.com>
* support/include/tmacros.h: Disable the check for dispatch disable
level for SMP tests. Another CPU may be inside RTEMS by the time
these checks are being done which would result in false failures.
M 1.187 testsuites/ChangeLog
M 1.57 testsuites/support/include/tmacros.h
diff -u rtems/testsuites/ChangeLog:1.186 rtems/testsuites/ChangeLog:1.187
--- rtems/testsuites/ChangeLog:1.186 Thu Jun 30 07:49:17 2011
+++ rtems/testsuites/ChangeLog Fri Jul 1 09:28:03 2011
@@ -1,3 +1,9 @@
+2011-07-01 Jennifer Averett <Jennifer.Averett at OARcorp.com>
+
+ * support/include/tmacros.h: Disable the check for dispatch disable
+ level for SMP tests. Another CPU may be inside RTEMS by the time
+ these checks are being done which would result in false failures.
+
2011-06-28 Joel Sherrill <joel.sherrill at oarcorp.com>
* configure.ac, support/include/test_support.h:
diff -u rtems/testsuites/support/include/tmacros.h:1.56 rtems/testsuites/support/include/tmacros.h:1.57
--- rtems/testsuites/support/include/tmacros.h:1.56 Thu Apr 21 14:05:33 2011
+++ rtems/testsuites/support/include/tmacros.h Fri Jul 1 09:28:03 2011
@@ -45,8 +45,15 @@
/*
* Check that that the dispatch disable level is proper for the
* mode/state of the test. Normally it should be 0 when in task space.
+ *
+ * This test is only valid when in a non smp system. In an smp system
+ * another cpu may be accessing the core at any point when this core
+ * does not have it locked.
*/
-#define check_dispatch_disable_level( _expect ) \
+#if defined SMPTEST
+ #define check_dispatch_disable_level( _expect )
+#else
+ #define check_dispatch_disable_level( _expect ) \
do { \
if ( (_expect) != -1 \
&& ((_Thread_Dispatch_in_critical_section() == false && (_expect) != 0) \
@@ -55,11 +62,12 @@
printk( \
"\n_Thread_Dispatch_disable_level is (%" PRId32 \
") not %d detected at %s:%d\n", \
- _Thread_Dispatch_get_disable_level(), (_expect), __FILE__, __LINE__ ); \
+ _Thread_Dispatch_in_critical_section(), (_expect), __FILE__, __LINE__ ); \
FLUSH_OUTPUT(); \
rtems_test_exit( 1 ); \
} \
} while ( 0 )
+#endif
/*
* These macros properly report errors within the Classic API
--
Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20110701/f164d7f0/attachment-0001.html>
More information about the vc
mailing list