summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests (follow)
Commit message (Collapse)AuthorAgeFilesLines
* score: Add and use <rtems/score/userextimpl.h>Sebastian Huber2012-11-221-1/+1
| | | | | This file contains the parts of <rtems/score/userext.h> that are only necessary for the RTEMS implementation.
* sptests/spcbssched02: PR2081: WorkaroundSebastian Huber2012-11-211-8/+10
| | | | | Avoid uninitialized stack variable. This is not a proper fix. It is not clear what the task should do if argument != 1.
* rtems: Add rtems_clock_get_uptime_seconds()Sebastian Huber2012-11-212-0/+4
|
* rtems: Add rtems_clock_get_uptime_timeval()Sebastian Huber2012-11-212-0/+4
|
* score: Add RTEMS_FATAL_SOURCE_ASSERTSebastian Huber2012-11-152-4/+6
|
* score: Add RTEMS_FATAL_SOURCE_EXITSebastian Huber2012-11-151-3/+0
| | | | | | | Include <bsp/default-initial-extension.h> in all BSPs. Call rtems_fatal() with RTEMS_FATAL_SOURCE_EXIT as source and the exit() status code as fatal code in every bsp_cleanup(). Move previous bsp_cleanup() code into bsp_fatal_extension().
* score: Add INTERNAL_ERROR_CPU_ISR_INSTALL_VECTORSebastian Huber2012-11-152-1/+2
| | | | | Use INTERNAL_ERROR_CPU_ISR_INSTALL_VECTOR on PowerPC for _CPU_ISR_install_vector().
* sapi: Add and use rtems_internal_error_descriptionSebastian Huber2012-11-157-31/+122
|
* sptests/spfatal24: Fix NULL pointer accessSebastian Huber2012-11-151-10/+4
|
* testsuites: Include <bsp.h>Sebastian Huber2012-11-141-0/+2
| | | | | Include <bsp.h> for proper BSP specific <rtems/confdefs.h> initialization.
* sptests/spintrcritical09: Fix check orderSebastian Huber2012-11-131-17/+25
| | | | | | The critical section check never succeeded since watchdogs are ordered with respect to the insertion time. Now we call the watchdog routine if appropriate and bypass the normal watchdog mechanic.
* sptests/spinternalerror01: New testSebastian Huber2012-11-136-0/+121
|
* sptests/spfatal08: SimplifySebastian Huber2012-11-071-33/+1
|
* sptests/spfatal07: Use confdefs.h to trigger testSebastian Huber2012-11-071-4/+5
|
* rtems: Add system eventsSebastian Huber2012-10-3010-0/+302
| | | | | | | System events are similar to normal events. They offer a second set of events. These events are intended for internal RTEMS use and should not be used by applications (with the exception of the transient system event).
* score: Work area initialization API changeSebastian Huber2012-10-2512-102/+34
| | | | | | | | | | | | The work areas (RTEMS work space and C program heap) will be initialized now in a separate step and are no longer part of rtems_initialize_data_structures(). Initialization is performed with tables of Heap_Area entries. This allows usage of scattered memory areas present on various small scale micro-controllers. The sbrk() support API changes also. The bsp_sbrk_init() must now deal with a minimum size for the first memory chunk to take the configured work space size into account.
* sptests/sp39: Increase clock tick intervalSebastian Huber2012-10-151-1/+1
| | | | | Not every BSP supports a 250 micro seconds clock tick interval. For example PSIM.
* Use proper 3 line form of license textJoel Sherrill2012-10-111-3/+0
|
* Cleanup Krzysztof's copyright notices.Ralf Corsépius2012-10-113-4/+4
|
* score: Critical fix for thread dispatchingSebastian Huber2012-10-076-1/+212
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The changes in _Thread_Dispatch() of commits dad36c52b8be5d7b46bc7af85655055db7208652 and d4dc7c8196355f08044e67a3f5c1e19485f17ff1 introduced a severe bug which destroys the real-time properties of RTEMS completely. Consider the following scenario. We have three tasks L (lowest priority), M (middle priority), and H (highest priority). Now let a thread dispatch from M to L happen. An interrupt occurs in _Thread_Dispatch() here: void _Thread_Dispatch( void ) { [...] post_switch: _ISR_Enable( level ); <-- INTERRUPT <-- AFTER INTERRUPT _Thread_Unnest_dispatch(); _API_extensions_Run_postswitch(); } The interrupt event makes task H ready. The interrupt code will see _Thread_Dispatch_disable_level > 0 and thus doesn't perform a _Thread_Dispatch(). Now we return to position "AFTER INTERRUPT". This means task L executes now although task H is ready! Task H will execute once someone calls _Thread_Dispatch().
* timespec helpers: Add wrappers with new testKrzysztof Mięsowicz2012-08-296-1/+316
|
* sp77: new test to cover allocated message size overflowingKrzysztof Mięsowicz2012-08-296-1/+102
| | | | Author: Krzysztof Mięsowicz <krzysztof.miesowicz@gmail.com>
* Revert "Add config.h.in."Gedare Bloom2012-08-061-55/+0
| | | | This reverts commit cf42a6ea9dbb6ebee498ae8db319d3e475bcd6be.
* Require automake-1.12.2.Ralf Corsépius2012-07-191-1/+1
|
* Require autoconf-2.69.Ralf Corsépius2012-07-191-1/+1
|
* score: Change greedy allocation APISebastian Huber2012-07-172-3/+3
|
* score: New structure TOD_ControlSebastian Huber2012-06-141-2/+2
| | | | | Group the global TOD variables (_TOD_Now, _TOD_Uptime, and _TOD_Is_set) in a structure to reduce address loads in _TOD_Tickle_ticks().
* sptests - Eliminate missing prototype warningsJoel Sherrill2012-05-3171-106/+388
|
* Add config.h.in.Ralf Corsépius2012-05-241-0/+55
|
* Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill2012-05-11607-1682/+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.
* spqreslib - Make global data extern in system.hJoel Sherrill2012-05-092-8/+12
| | | | | | Global data was declared in system.h but should have been extern in system.h and declared in init.c. There were duplicate symbol linking errors on at least powerpc/mpc8260ads.
* rbtree: API changes. Remove rbtree control node from RBTree_Next.Gedare Bloom2012-05-081-2/+2
| | | | | | | | | | | | The implementation of RBTree_Next was using an awkward construction to detect and avoid accessing the false root of the red-black tree. To deal with the false root, RBTree_Next was comparing node parents with the control node. Instead the false root can be detected by checking if the grandparent of a node exists; the grandparent of the tree's true root is NULL by definition so the root of the tree is found while walking up the tree by checking for the non-existence of a grandparent. This change propagates into the predecessor/successor and iterate functions.
* Revert: Remove CVS IdsJoel Sherrill2012-05-07158-0/+774
| | | | | See http://www.rtems.org/pipermail/rtems-devel/2012-May/001006.html for details.
* Filesystem: Remove per file descriptor semaphoreSebastian Huber2012-05-0410-18/+8
| | | | | | | | | The per file descriptor semaphore (field of rtems_libio_t) is unused in RTEMS. There is a considerable memory overhead due to that. A semaphore needs roughly 124 bytes which is huge compared to the approximately 72 bytes for the file descriptor structure itself. Device drivers can create their own synchronization primitives in the open handler on demand.
* Remove CVS-Ids.Ralf Corsépius2012-05-04158-774/+0
|
* sp07/buffered_io.c add missing copyrightJoel Sherrill2012-05-031-1/+6
| | | | Date and ownership determined from file history.
* PR1908: consolidate libqos code and fix installed header locationGedare Bloom2012-04-231-1/+1
|
* PR1908: QoS library for CBS schedulerPetr Benes2012-04-156-0/+507
| | | | Add the lipqos and sptest.
* PR1908: QoS library for CBS schedulerPetr Benes2012-04-152-1/+2
| | | | | | | Since the CBS scheduler is inspired by AQuoSA project for Linux, additional API (qreslib) compliant with Linux has been created. Sptest for qreslib included.
* rbtree: PR2046: Replace rtems_rbtree_uniqueSebastian Huber2012-04-131-5/+3
|
* rbtree: PR1995: API changeSebastian Huber2012-04-111-2/+2
| | | | | | | | | | | | | | | | New functions o _RBTree_Next_unprotected(), o _RBTree_Next(), o _RBTree_Successor_unprotected(), o _RBTree_Predecessor_unprotected(), o rtems_rbtree_successor_unprotected(), and o rtems_rbtree_predecessor_unprotected(). Change prototype of o _RBTree_Successor(), o _RBTree_Predecessor(), o rtems_rbtree_successor(), and o rtems_rbtree_predecessor().
* PR1994: RBTree Compare Result ChangeGedare Bloom2012-03-291-5/+3
| | | | | Change the meaning of the compare result to simplify comparison of integer keys.
* IMFS: Do not check for unsupported typesSebastian Huber2012-03-131-1/+23
| | | | | Allow creation of nodes with an unsupported type. Later the usage of such nodes will return an error status.
* Filesystem: Reference counting for locationsSebastian Huber2012-03-131-16/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o A new data structure rtems_filesystem_global_location_t was introduced to be used for o the mount point location in the mount table entry, o the file system root location in the mount table entry, o the root directory location in the user environment, and o the current directory location in the user environment. During the path evaluation global start locations are obtained to ensure that the current file system instance will be not unmounted in the meantime. o The user environment uses now reference counting and is protected from concurrent access. o The path evaluation process was completely rewritten and simplified. The IMFS, RFS, NFS, and DOSFS use now a generic path evaluation method. Recursive calls in the path evaluation have been replaced with iteration to avoid stack overflows. Only the evaluation of symbolic links is recursive. No dynamic memory allocations and intermediate buffers are used in the high level path evaluation. No global locks are held during the file system instance specific path evaluation process. o Recursive symbolic link evaluation is now limited by RTEMS_FILESYSTEM_SYMLOOP_MAX. Applications can retrieve this value via sysconf(). o The device file system (devFS) uses now no global variables and allocation from the workspace. Node names are allocated from the heap. o The upper layer lseek() performs now some parameter checks. o The upper layer ftruncate() performs now some parameter checks. o unmask() is now restricted to the RWX flags and protected from concurrent access. o The fchmod_h and rmnod_h file system node handlers are now a file system operation. o The unlink_h operation has been removed. All nodes are now destroyed with the rmnod_h operation. o New lock_h, unlock_h, clonenod_h, and are_nodes_equal_h file system operations. o The path evaluation and file system operations are now protected by per file system instance lock and unlock operations. o Fix and test file descriptor duplicate in fcntl(). o New test fstests/fsnofs01.
* PR2034: sprbtree01: predecessor/successor imprecisionGedare Bloom2012-03-041-2/+2
| | | | | | | The tests for the rtems_rbtree_predecessor/successor check for a range of values for the target id of the predecessor/successor when we know the exact expected value. This commit makes the test more precise.
* Use alternative APISebastian Huber2012-02-171-2/+2
| | | | | | Replaced Allocate_majority_of_workspace() with rtems_workspace_allocate(). Replaced Allocate_majority_of_heap() with rtems_heap_greedy_allocate().
* PR 1991/cpukit - attr.c (really mode code) warning reworkJoel Sherrill2012-02-023-26/+25
| | | | | | | | | | | | | | This PR was about a warning for no previous prototype for rtems_interrupt_level_attribute. This method exists (like a few others) to have real bodies for Classic API services implemented as macros. These macros are not available from anything but C and C++. The most explicit use was in the Ada binding but these would be needed from assembly language or any other non-C based language. On top of needing a prototype, the methods were misnamed. They were related to modes. This renames them, moves the file, fixes test code, etc.
* Remove all .cvsignore files.Joel Sherrill2012-02-01156-325/+0
|
* Typo.Sebastian Huber2011-12-142-4/+4
|
* 2011-12-14 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2011-12-148-1/+225
| | | | | | | | PR 1924/cpukit * spstkalloc02/.cvsignore, spstkalloc02/Makefile.am, spstkalloc02/init.c, spstkalloc02/spstkalloc02.doc, spstkalloc02/spstkalloc02.scn: New files. * Makefile.am, configure.ac: Reflect changes above.