summaryrefslogtreecommitdiffstats
path: root/testsuites (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Use linker set for system initializationSebastian Huber2015-12-116-0/+212
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make rtems_initialize_data_structures(), rtems_initialize_before_drivers() and rtems_initialize_device_drivers() static. Rename rtems_initialize_start_multitasking() to rtems_initialize_executive() and call the registered system initialization handlers in this function. Add system initialization API available via #include <rtems/sysinit.h>. Update the documentation accordingly. This is no functional change, only the method to call the existing initialization routines changes. Instead of direct function calls a table of function pointers contained in the new RTEMS system initialization linker set is used. This table looks like this (the actual addresses depend on the target). nm *.exe | grep _Linker | sort 0201a2d0 D _Linker_set__Sysinit_begin 0201a2d0 D _Linker_set__Sysinit_bsp_work_area_initialize 0201a2d4 D _Linker_set__Sysinit_bsp_start 0201a2d8 D _Linker_set__Sysinit_rtems_initialize_data_structures 0201a2dc D _Linker_set__Sysinit_bsp_libc_init 0201a2e0 D _Linker_set__Sysinit_rtems_initialize_before_drivers 0201a2e4 D _Linker_set__Sysinit_bsp_predriver_hook 0201a2e8 D _Linker_set__Sysinit_rtems_initialize_device_drivers 0201a2ec D _Linker_set__Sysinit_bsp_postdriver_hook 0201a2f0 D _Linker_set__Sysinit_end Add test sptests/spsysinit01. Update #2408.
* Add RTEMS linker setsSebastian Huber2015-12-089-0/+290
| | | | Update #2408.
* score: Statically initialize API extensionsSebastian Huber2015-12-081-2/+0
| | | | Update #2408.
* Remove <rtems/debug.h>Sebastian Huber2015-12-078-130/+1
| | | | Close #2477.
* psxtmtests_plan.csv: Fix typoJoel Sherrill2015-12-011-1/+1
|
* libtests/termios04: Avoid use of freed memorySebastian Huber2015-11-121-7/+35
|
* sapi: Add rtems_chain_get_first_unprotected()Sebastian Huber2015-11-051-0/+7
| | | | Close #2459.
* sptests/spsimplesched02: Fix warningSebastian Huber2015-11-041-1/+1
| | | | Close #2455.
* libblock: Print block sizes and countSebastian Huber2015-11-022-2/+5
|
* CONFIGURE_IMFS_MEMFILE_BYTES_PER_BLOCK was undocumented and not error checkedJoel Sherrill2015-10-271-2/+2
| | | | closes #2431.
* basdefs.h: Add and use RTEMS_UNUSEDSebastian Huber2015-10-266-43/+43
|
* Fail gracefully if pax is not foundBen Gras2015-10-221-1/+5
| | | | | The $(PAX) variable is used unconditionally so it shouldn't be left empty if not found at configure time. Fixes #2437.
* libfdt: Merge into librtemscpuSebastian Huber2015-10-191-2/+1
| | | | This allows BSPs to use this library.
* libfdt: Initial importSebastian Huber2015-10-169-0/+310
| | | | | | | | | | | | | | Import from: git://git.kernel.org/pub/scm/utils/dtc/dtc.git Commit: 604e61e081e3c6c8fa1a8189c71cb3908a5bbc1e Date: 2015-09-29T09:09:08Z
* Delete CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEMSebastian Huber2015-10-154-8/+0
| | | | This define accidentally re-appeared.
* libstdthreads: Add C11 threadsSebastian Huber2015-10-146-0/+501
|
* SMP: Fix and optimize thread dispatchingSebastian Huber2015-09-281-1/+2
| | | | | | | | According to the C11 and C++11 memory models only a read-modify-write operation guarantees that we read the last value written in modification order. Avoid the sequential consistent thread fence and instead use the inter-processor interrupt to set the thread dispatch necessary indicator.
* score: Use uintptr_t for atomic pointer operationsSebastian Huber2015-09-264-64/+120
| | | | Do not obfuscate the standard API.
* score: Fix atomic compare exchangeSebastian Huber2015-09-251-16/+49
|
* score: Fix resource count for self-contained mutexSebastian Huber2015-09-141-3/+32
|
* rbheap: Fix rtems_rbheap_free()Sebastian Huber2015-09-111-0/+5
| | | | | | | Remove unused descriptor of merged free chunks from the free chain and add them to the spare descriptors. Close #2417.
* libtests/rbheap01: SimplifySebastian Huber2015-09-111-172/+95
| | | | Update #2417.
* Upgrade to 4.11.99.0Sebastian Huber2015-09-111-2/+2
|
* score: Implement priority boostingSebastian Huber2015-09-041-5/+56
|
* score: Implement SMP-specific priority queueSebastian Huber2015-09-046-0/+363
|
* rbtree: Replace implementationSebastian Huber2015-09-031-431/+422
| | | | | Use the BSD <sys/tree.h> implementation since it is faster, more flexible and uses less storage. See https://github.com/sebhub/rb-bench.
* posix: glibc compatibilitySebastian Huber2015-09-022-7/+7
|
* psxtests/psxcancel: Check return statusSebastian Huber2015-09-011-10/+24
| | | | Update #2402.
* score: Fix return status of mutex try acquireSebastian Huber2015-09-011-18/+18
| | | | This fixes a copy and paste error (from libbsd).
* rbtree: Delete rtems_rbtree_find_control()Sebastian Huber2015-09-011-7/+0
| | | | | This function is hard to support in alternative implementations. It has no internal use case.
* rbheap: Drop direction from _RBTree_Iterate()Sebastian Huber2015-08-312-6/+3
|
* sptests/sprbtree01: Avoid internal APISebastian Huber2015-08-311-939/+951
|
* sptests/sprbtree01: Fix random ops test caseSebastian Huber2015-08-311-3/+3
|
* score: Add self-contained condition implementationSebastian Huber2015-07-302-0/+113
|
* score: Add scheduler <sys/lock.h> supportSebastian Huber2015-07-302-0/+22
|
* score: Add self-contained futex implementationSebastian Huber2015-07-302-0/+79
|
* score: Add self-contained semaphore implementationSebastian Huber2015-07-302-0/+65
|
* score: Add self-contained mutex implementationSebastian Huber2015-07-306-0/+486
| | | | | | | This mutex implementation uses a thread priority queue with a simple priority inheritance mechanism (similar to the object based mutexes). The storage space must be supplied by the user (16 bytes on 32-bit targets).
* i2c: Fix return status of i2c dev read/writeSebastian Huber2015-07-231-2/+21
|
* score: Introduce Thread_queue_HeadsSebastian Huber2015-07-233-4/+4
| | | | | | | | | | | | | Move the storage for the thread queue heads to the threads. Each thread provides a set of thread queue heads allocated from a dedicated memory pool. In case a thread blocks on a queue, then it lends its heads to the queue. In case the thread unblocks, then it takes a free set of threads from the queue. Since a thread can block on at most one queue this works. This mechanism is used in FreeBSD. The motivation for this change is to reduce the memory demands of the synchronization objects. On a 32-bit uni-processor configuration the Thread_queue_Control size is now 8 bytes, compared to 64 bytes in RTEMS 4.10 (other changes reduced the size as well).
* score: Introduce Thread_queue_QueueSebastian Huber2015-07-231-2/+2
| | | | | | Separate the thread queue heads and lock from the operations. This enables the support for light weight objects which only support one queuing discipline.
* score: TypoSebastian Huber2015-07-131-1/+1
|
* score: Accept NULL pointer in _Freechain_Put()Sebastian Huber2015-07-011-0/+2
| | | | With this a _Freechain_Put( _Freechain_Get() ) works always.
* score: Freechain handler API changesSebastian Huber2015-07-012-152/+19
| | | | | Replace the extend function with an allocator since this fits better to the current use case.
* score: Hide SMP lock profiling impl if disabledSebastian Huber2015-06-261-2/+2
| | | | The problem is that empty structures have a different size in C and C++.
* libmisc: Simplify <rtems/stackchk.h>Sebastian Huber2015-06-261-0/+1
| | | | | Drop the <rtems/score/percpu.h> include since this file exposes a lot of implementation details.
* rtems: Add rtems_interrupt_local_disable|enable()Sebastian Huber2015-06-226-81/+101
| | | | | | | | Add rtems_interrupt_local_disable|enable() as suggested by Pavel Pisa to emphasize that interrupts are only disabled on the current processor. Do not define the rtems_interrupt_disable|enable|flash() macros and functions on SMP configurations since they don't ensure system wide mutual exclusion.
* tmtests/tm27: Use scheduler lockSebastian Huber2015-06-191-10/+5
|
* sptests/sp37: Fix type and simplifySebastian Huber2015-06-191-15/+7
|
* Remove use ticks for statistics configure option.Joel Sherrill2015-06-151-42/+22
| | | | | | | | | | This was obsolete and broken based upon recent time keeping changes. Thie build option was previously enabled by adding USE_TICKS_FOR_STATISTICS=1 to the configure command line. This propagated into the code as preprocessor conditionals using the __RTEMS_USE_TICKS_FOR_STATISTICS__ conditional.