summaryrefslogtreecommitdiffstats
path: root/testsuites/tmtests/tm27/task1.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-01-24tm27: Avoid function pointer castsSebastian Huber1-51/+49
Add TM27_USE_VECTOR_HANDLER to select the interrupt handler type used by the <tm27.h> implementation. Close #4820.
2022-04-07testsuites/tmtests/*: Change license to BSD-2Joel Sherrill1-3/+22
Updates #3053.
2020-03-04config: Remove <rtems/btimer.h> includeSebastian Huber1-0/+1
The use of CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER does not define anything, so remove the <rtems/btimer.h> include. Update #3875.
2018-10-05tests: Use rtems_task_exit()Sebastian Huber1-2/+1
Update #3533.
2017-10-28tests: Remove TEST_INITSebastian Huber1-2/+0
The TEST_EXTERN is a used only by the system.h style tests and they use CONFIGURE_INIT appropriately. Update #3170. Update #3199.
2017-10-23testsuite: Use printk for all test output where possible.Chris Johns1-0/+2
- Remove the printf support leaving the direct printk support configured with TESTS_USE_PRINTK and all other output goes via a buffered vsniprintf call to printk. - Control the test's single init for functions and global data with TEST_INIT and not CONFIGURE_INIT. They are now separate. Updates #3170.
2016-11-07score: Prevent assignment to _Thread_ExecutingSebastian Huber1-4/+11
2016-11-02score: Introduce Thread_Scheduler_control::homeSebastian Huber1-2/+2
Replace Thread_Scheduler_control::control and Thread_Scheduler_control::own_control with new Thread_Scheduler_control::home. Update #2556.
2016-05-20score: Rename _ISR_Disable_without_giant()Sebastian Huber1-2/+2
Rename _ISR_Disable_without_giant() into _ISR_Local_disable(). Rename _ISR_Enable_without_giant() into _ISR_Local_enable(). This is a preparation to remove the Giant lock. Update #2555.
2016-05-20testsuites: Avoid Giant lockSebastian Huber1-2/+2
Replace _Thread_Disable_dispatch() with _Thread_Dispatch_disable(). Replace _Thread_Enable_dispatch() with _Thread_Dispatch_enable(). This is a preparation to remove the Giant lock. Update #2555.
2016-05-12score: Use thread state lock for current stateSebastian Huber1-5/+13
In addition protect scheduler of thread by thread state lock. Enables use of scheduler per-instance locks. Update #2555.
2015-06-19tmtests/tm27: Use scheduler lockSebastian Huber1-10/+5
2014-04-15score: Static scheduler configurationSebastian Huber1-8/+12
Do not allocate the scheduler control structures from the workspace. This is a preparation step for configuration of clustered/partitioned schedulers on SMP.
2014-04-04score: Add scheduler control to scheduler opsSebastian Huber1-2/+4
Scheduler operations must be free of a global scheduler context to enable partitioned/clustered scheduling.
2014-04-03score: Move priority bit map to scheduler instanceSebastian Huber1-6/+5
Delete global variables _Priority_Major_bit_map and _Priority_Bit_map. This makes it possible to use multiple priority scheduler instances for example with clustered/partitioned scheduling on SMP.
2014-03-25tmtests: convert to test.hbjorn larsson1-3/+5
2014-03-21Change all references of rtems.com to rtems.org.Chris Johns1-1/+1
2014-03-06score: Delete _Thread_Dispatch_set_disable_level()Sebastian Huber1-8/+2
This function was only used in some tests and can be replaced with other functions.
2013-12-07tmtests: Make output more uniformJoel Sherrill1-7/+7
2013-08-30smp: Add and use _Assert_Owner_of_giant()Sebastian Huber1-2/+2
Add and use _ISR_Disable_without_giant() and _ISR_Enable_without_giant() if RTEMS_SMP is defined. On single processor systems the ISR disable/enable was the big hammer which ensured system-wide mutual exclusion. On SMP configurations this no longer works since other processors do not care about disabled interrupts on this processor and continue to execute freely. On SMP in addition to ISR disable/enable an SMP lock must be used. Currently we have only the Giant lock so we can check easily that ISR disable/enable is used only in the right context.
2013-08-01tmtests/tm27: Fixes for RTEMS_DEBUGSebastian Huber1-0/+22
2012-05-11Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill1-2/+0
Script does what is expected and tries to do it as smartly as possible. + remove occurrences of two blank comment lines next to each other after Id string line removed. + remove entire comment blocks which only exited to contain CVS Ids + If the processing left a blank line at the top of a file, it was removed.
2011-04-212011-04-21 Jennifer Averett <Jennifer.Averett@OARcorp.comJennifer Averett1-5/+5
PR 1777/cpukit * support/include/tmacros.h, tmtests/tm26/task1.c, tmtests/tm27/task1.c: Consolidated access to _Thread_Dispatch_disable_level.
2011-03-162011-03-16 Jennifer Averett <jennifer.averett@OARcorp.com>Joel Sherrill1-0/+6
PR 1743/cpu * tm26/task1.c, tm27/task1.c: Add Simple Priority Scheduler as complement to existing Deterministic Priority Scheduler. Modify these tests to verify the scheduler they are designed to work with is the default scheduler.
2011-02-22Add HAVE_CONFIG_H.Ralf Corsepius1-0/+4
2011-02-182011-02-18 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-5/+11
* tm26/task1.c, tm27/task1.c: Adjust for name changes.
2010-11-252010-11-25 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber1-2/+2
* tm26/task1.c, tm27/task1.c: Update for API changes.
2010-11-242010-11-24 Gedare Bloom <giddyup44@yahoo.com>Joel Sherrill1-2/+4
PR 1647/cpukit * tm26/task1.c, tm27/task1.c: Update documentation to reflect refactoring of SuperCore to add Scheduler Handler.
2010-10-252010-10-25 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber1-2/+2
* tm26/task1.c, tm27/task1.c: Do not violate chain API.
2010-07-302010-07-30 Gedare Bloom <giddyup44@yahoo.com>Joel Sherrill1-2/+2
PR 1599/cpukit * tm26/task1.c, tm27/task1.c: Rename _Context_Switch_necessary to _Thread_Dispatch_necessary to more properly reflect the intent.
2009-05-09Fix most warnings.Joel Sherrill1-2/+2
2008-12-142008-12-14 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-6/+6
* tm01/task1.c, tm02/task1.c, tm03/task1.c, tm04/task1.c, tm05/task1.c, tm06/task1.c, tm07/task1.c, tm08/task1.c, tm09/task1.c, tm10/task1.c, tm11/task1.c, tm12/task1.c, tm13/task1.c, tm14/task1.c, tm16/task1.c, tm17/task1.c, tm18/task1.c, tm19/task1.c, tm20/task1.c, tm21/task1.c, tm23/task1.c, tm24/task1.c, tm25/task1.c, tm26/task1.c, tm27/task1.c, tm28/task1.c, tm29/task1.c, tmoverhd/testtask.c: Run all tests successfully with maxixum number of priorities as 16 instead of 256. This was done by temporarily modifying the score priority.h maximum. This allowed testing of all API code to ensure that it worked properly with a reduced number of priorities. Most modifications were to switch from hard-coded maximum to using the API provided methods to determine maximum number of priority levels.
2008-08-312008-08-31 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-14/+14
* tm01/Makefile.am, tm01/task1.c, tm02/Makefile.am, tm02/task1.c, tm03/Makefile.am, tm03/task1.c, tm04/Makefile.am, tm04/task1.c, tm05/Makefile.am, tm05/task1.c, tm06/Makefile.am, tm06/task1.c, tm07/Makefile.am, tm07/task1.c, tm08/Makefile.am, tm08/task1.c, tm09/Makefile.am, tm09/task1.c, tm10/Makefile.am, tm10/task1.c, tm11/Makefile.am, tm11/task1.c, tm12/Makefile.am, tm12/task1.c, tm13/Makefile.am, tm13/task1.c, tm14/Makefile.am, tm14/task1.c, tm15/Makefile.am, tm15/task1.c, tm16/Makefile.am, tm16/task1.c, tm17/Makefile.am, tm17/task1.c, tm18/Makefile.am, tm18/task1.c, tm19/Makefile.am, tm19/task1.c, tm20/Makefile.am, tm20/task1.c, tm21/Makefile.am, tm21/task1.c, tm22/Makefile.am, tm22/task1.c, tm23/Makefile.am, tm23/task1.c, tm24/Makefile.am, tm24/task1.c, tm25/Makefile.am, tm25/task1.c, tm26/Makefile.am, tm26/task1.c, tm27/Makefile.am, tm27/task1.c, tm28/Makefile.am, tm28/task1.c, tm29/Makefile.am, tm29/task1.c, tmck/Makefile.am, tmck/task1.c, tmoverhd/Makefile.am, tmoverhd/testtask.c: Eliminate empty function from every benchmark timer driver. Fix spelling.
2008-08-312008-08-31 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-14/+14
* tm01/task1.c, tm02/task1.c, tm03/task1.c, tm04/task1.c, tm05/task1.c, tm06/task1.c, tm07/task1.c, tm08/task1.c, tm09/task1.c, tm10/task1.c, tm11/task1.c, tm12/task1.c, tm13/task1.c, tm14/task1.c, tm15/task1.c, tm16/task1.c, tm17/task1.c, tm18/task1.c, tm19/task1.c, tm20/task1.c, tm21/task1.c, tm22/task1.c, tm23/task1.c, tm24/task1.c, tm25/task1.c, tm26/task1.c, tm27/task1.c, tm28/task1.c, tm29/task1.c, tmck/task1.c, tmoverhd/testtask.c: Rename timer driver methods to follow RTEMS programming conventions.
2008-02-012008-01-31 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill1-1/+1
* tm01/task1.c, tm02/task1.c, tm03/task1.c, tm04/task1.c, tm05/task1.c, tm06/task1.c, tm07/task1.c, tm08/task1.c, tm09/task1.c, tm10/task1.c, tm11/task1.c, tm12/task1.c, tm13/task1.c, tm14/task1.c, tm15/task1.c, tm16/task1.c, tm17/task1.c, tm18/task1.c, tm19/task1.c, tm20/task1.c, tm21/task1.c, tm22/task1.c, tm23/task1.c, tm24/task1.c, tm25/task1.c, tm26/task1.c, tm27/task1.c, tm28/task1.c, tm29/task1.c, tmck/task1.c, tmoverhd/testtask.c: Change TEST_INIT to CONFIGURE_INIT. Make tmacros.h available to all POSIX tests. Add a clock_settime case for < 1988.
2004-04-232004-04-23 Ralf Corsepius <ralf_corsepius@rtems.org>Ralf Corsepius1-1/+3
PR 610/bsps * tm27/task1.c: Use _RTEMS_RMTEST27 instead of RTEMS_TM27. Unconditionally include <tm27.h>.
2004-04-212004-04-21 Joel Sherrill <joel@OARcorp.com>Joel Sherrill1-4/+0
PR 611/bsps * tm27/task1.c: Follow conventions for tm27 and do not add another macro definition.
2004-04-20Remove stray white spaces.Ralf Corsepius1-4/+4
2004-03-302004-03-30 David Querbach <querbach@realtime.bc.ca>Joel Sherrill1-0/+4
PR 597/tests * tm02/system.h, tm03/system.h, tm04/system.h, tm05/system.h, tm06/system.h, tm07/system.h, tm08/system.h, tm10/system.h, tm11/system.h, tm12/system.h, tm13/system.h, tm14/system.h, tm15/system.h, tm16/system.h, tm17/system.h, tm18/system.h, tm19/system.h, tm21/system.h, tm22/system.h, tm23/system.h, tm24/system.h, tm25/system.h, tm26/system.h, tm27/system.h, tm27/task1.c, tm29/system.h: The actual workspace needed by the tmtests depends on OPERATION_COUNT, but the definitions of CONFIGURE_MAXIMIM_xxx in the their system.h files do not reflect this. This results in unnecessary memory exhaustion on small-memory systems such as the SS555.
2004-03-282004-03-28 Ralf Corsepius <ralf_corsepius@rtems.org>Ralf Corsepius1-5/+5
* include/timesys.h, tm01/task1.c, tm02/task1.c, tm03/task1.c, tm04/task1.c, tm05/task1.c, tm06/task1.c, tm07/task1.c, tm08/task1.c, tm09/task1.c, tm10/task1.c, tm11/task1.c, tm12/task1.c, tm13/task1.c, tm14/task1.c, tm15/task1.c, tm16/task1.c, tm17/task1.c, tm18/task1.c, tm20/task1.c, tm21/task1.c, tm22/task1.c, tm23/task1.c, tm24/task1.c, tm25/task1.c, tm26/task1.c, tm27/task1.c, tm28/task1.c, tm29/task1.c, tmck/task1.c, tmoverhd/testtask.c: Convert to using c99 fixed size types.
2004-02-262004-02-26 Joel Sherrill <joel@OARcorp.com>Joel Sherrill1-0/+2
PR 583/tests * tm26/task1.c, tm27/task1.c: Correctly reset _Thread_Dispatch_disable_level so printing is safe.
2003-09-042003-09-04 Joel Sherrill <joel@OARcorp.com>Joel Sherrill1-1/+1
* include/timesys.h, tm01/system.h, tm01/task1.c, tm01/tm01.doc, tm02/system.h, tm02/task1.c, tm02/tm02.doc, tm03/system.h, tm03/task1.c, tm03/tm03.doc, tm04/system.h, tm04/task1.c, tm04/tm04.doc, tm05/system.h, tm05/task1.c, tm05/tm05.doc, tm06/system.h, tm06/task1.c, tm06/tm06.doc, tm07/system.h, tm07/task1.c, tm07/tm07.doc, tm08/system.h, tm08/task1.c, tm08/tm08.doc, tm09/system.h, tm09/task1.c, tm09/tm09.doc, tm10/system.h, tm10/task1.c, tm10/tm10.doc, tm11/system.h, tm11/task1.c, tm11/tm11.doc, tm12/system.h, tm12/task1.c, tm12/tm12.doc, tm13/system.h, tm13/task1.c, tm13/tm13.doc, tm14/system.h, tm14/task1.c, tm14/tm14.doc, tm15/system.h, tm15/task1.c, tm15/tm15.doc, tm16/system.h, tm16/task1.c, tm16/tm16.doc, tm17/system.h, tm17/task1.c, tm17/tm17.doc, tm18/system.h, tm18/task1.c, tm18/tm18.doc, tm19/system.h, tm19/task1.c, tm19/tm19.doc, tm20/system.h, tm20/task1.c, tm20/tm20.doc, tm21/system.h, tm21/task1.c, tm21/tm21.doc, tm22/system.h, tm22/task1.c, tm22/tm22.doc, tm23/system.h, tm23/task1.c, tm23/tm23.doc, tm24/system.h, tm24/task1.c, tm24/tm24.doc, tm25/system.h, tm25/task1.c, tm25/tm25.doc, tm26/fptest.h, tm26/system.h, tm26/task1.c, tm26/tm26.doc, tm27/system.h, tm27/task1.c, tm27/tm27.doc, tm28/system.h, tm28/task1.c, tm28/tm28.doc, tm29/system.h, tm29/task1.c, tm29/tm29.doc, tmck/system.h, tmck/task1.c, tmck/tmck.doc, tmoverhd/dumrtems.h, tmoverhd/empty.c, tmoverhd/system.h, tmoverhd/testtask.c, tmoverhd/tmoverhd.doc: URL for license changed.
2002-08-022002-08-01 Joel Sherrill <joel@OARcorp.com>Joel Sherrill1-1/+1
* Per PR47 add support for buffered test output. This involved adding defines to redirect output to a buffer and dump it when full, at "test pause", and at exit. To avoid problems when redefining exit(), all tests were modified to call rtems_test_exit(). Some tests, notable psxtests, had to be modified to include the standard test macro .h file (pmacros.h or tmacros.h) to enable this support. * include/timesys.h, tm01/task1.c, tm02/task1.c, tm03/task1.c, tm04/task1.c, tm05/task1.c, tm06/task1.c, tm07/task1.c, tm08/task1.c, tm09/task1.c, tm10/task1.c, tm11/task1.c, tm12/task1.c, tm13/task1.c, tm14/task1.c, tm15/task1.c, tm16/task1.c, tm17/task1.c, tm18/task1.c, tm19/task1.c, tm20/task1.c, tm21/task1.c, tm22/task1.c, tm23/task1.c, tm24/task1.c, tm25/task1.c, tm26/task1.c, tm27/task1.c, tm28/task1.c, tm29/task1.c, tmck/task1.c, tmoverhd/testtask.c: Modified.
2001-11-082001-11-08 Jiri Gaisler <jiri@gaisler.com>Joel Sherrill1-7/+14
This fix is response to test results reported by Jerry Needell <jerry.needell@unh.edu> for the SPARC/ERC32 and tracked as PR80. * tm27/task1.c: Account for overhead in starting and stopping the timer.
2000-01-10Patch from Jay Kulpinski <jskulpin@eng01.gdds.com> to make sureJoel Sherrill1-1/+1
RTEMS_TM27 is defined before the bsp.h is included.
2000-01-03Added define to trip items that are private to tm27 in bsp.h.Joel Sherrill1-0/+1
1999-11-17Updated copyright notice.Joel Sherrill1-2/+1
1998-02-17updated copyright to 1998Joel Sherrill1-1/+1
1997-10-08Fixed typo in the pointer to the license terms.Joel Sherrill1-2/+2
1997-04-22headers updated to reflect new style copyright notice as partJoel Sherrill1-5/+5
of switching to the modified GNU GPL.