summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxspin01/main.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* posix: Add self-contained pthread spinlockSebastian Huber2016-11-231-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Turn pthread_spinlock_t into a self-contained object. On uni-processor configurations, interrupts are disabled in the lock/trylock operations and the previous interrupt status is restored in the corresponding unlock operations. On SMP configurations, a ticket lock is a acquired and released in addition. The self-contained pthread_spinlock_t object is defined by Newlib in <sys/_pthreadtypes.h>. typedef struct { struct _Ticket_lock_Control _lock; __uint32_t _interrupt_state; } pthread_spinlock_t; This implementation is simple and efficient. However, this test case of the Linux Test Project would fail due to call of printf() and sleep() during spin lock ownership: https://github.com/linux-test-project/ltp/blob/master/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_lock/1-2.c There is only limited support for profiling on SMP configurations. Delete CORE spinlock implementation. Update #2674.
* tests/psxtests: Use <rtems/test.h>Sebastian Huber2014-03-251-0/+2
|
* Change all references of rtems.com to rtems.org.Chris Johns2014-03-211-1/+1
|
* psxtests - Eliminate missing prototype warningsJoel Sherrill2012-05-111-5/+11
|
* Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill2012-05-111-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.
* Add HAVE_CONFIG_H.Ralf Corsepius2011-02-221-0/+4
|
* 2008-06-17 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-06-171-1/+3
| | | | | * psxrwlock01/main.c, psxspin01/main.c: Now accounts for extra stack requested for initialization task.
* 2008-01-31 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-02-011-1/+1
| | | | | | | | | | * include/pmacros.h, psx01/init.c, psx01/system.h, psx13/main.c, psxbarrier01/main.c, psxchroot01/main.c, psxfatal_support/init.c, psxfile01/main.c, psxfile01/test.c, psxmount/main.c, psxrdwrv/main.c, psxreaddir/main.c, psxrwlock01/main.c, psxspin01/main.c, psxstat/main.c, psxtime/main.c: Change TEST_INIT to CONFIGURE_INIT. Make tmacros.h available to all POSIX tests. Add a clock_settime case for < 1988.
* 2006-11-15 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2006-11-151-0/+47
* psxrwlock01/.cvsignore, psxrwlock01/Makefile.am, psxrwlock01/main.c, psxrwlock01/psxrwlock01.scn, psxrwlock01/test.c, psxspin01/.cvsignore, psxspin01/Makefile.am, psxspin01/main.c, psxspin01/psxspin01.scn, psxspin01/test.c: New files.