summaryrefslogtreecommitdiffstats
path: root/cpukit/sapi (unfollow)
Commit message (Collapse)AuthorFilesLines
2017-10-06confdefs: Fix typoSebastian Huber1-1/+1
2017-10-05posix: Implement self-contained POSIX mutexSebastian Huber2-69/+38
POSIX mutexes are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3112.
2017-10-05posix: Implement self-contained POSIX condvarSebastian Huber2-63/+33
POSIX condition variables are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3113.
2017-10-05posix: Implement self-contained POSIX rwlocksSebastian Huber2-26/+29
POSIX rwlocks are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3115.
2017-10-05posix: Implement self-contained POSIX barriersSebastian Huber2-25/+26
POSIX barriers are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3114.
2017-10-05posix: Implement self-contained POSIX semaphoresSebastian Huber1-0/+25
For semaphore object pointer and object validation see POSIX_SEMAPHORE_VALIDATE_OBJECT(). Destruction or close of a busy semaphore returns an error status. The object is not flushed. POSIX semaphores are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3116.
2017-08-22confdefs: Fix POSIX keys configurationSebastian Huber1-1/+2
Remove the OBJECTS_UNLIMITED_OBJECTS flag for the memory size configuration. Update #3105.
2017-07-25INTERNAL_ERROR_ILLEGAL_USE_OF_FLOATING_POINT_UNITSebastian Huber1-2/+3
Add new fatal error INTERNAL_ERROR_ILLEGAL_USE_OF_FLOATING_POINT_UNIT. Update #3077.
2017-07-10score: Make EDF the default SMP schedulerSebastian Huber1-2/+2
The EDF SMP scheduler supports simple thread processor affinities (see #3059) with a small run-time overhead. The current default SMP scheduler lacks support for thread processor affinities at all. The EDF SMP scheduler offers a good feature set for most applications. So, use it by default. Run-time libraries like libgomp, MTAPI, work stealing schedulers, language interpreters (e.g. Erlang virtual machine), maintainence of per-processor data (e.g. Universal Memory Allocator (UMA)), etc. use a one-to-one thread processor affinity for example. Update #3063.
2017-07-10score: Add simple affinity support to EDF SMPSebastian Huber2-4/+8
Update #3059.
2017-06-29score: Add SMP EDF schedulerSebastian Huber2-1/+43
Update #3056.
2017-05-16confdefs.h: Add SMP enabled field to configurationSebastian Huber2-1/+12
Do not use the processor count to determine if SMP is enabled. Instead use a dedicated configuration option. Enable SMP by default in SMP configurations. Add CONFIGURE_DISABLE_SMP_CONFIGURATION to all test which would fail otherwise. Update #3001.
2017-05-16confdefs.h: Fix compile error in non-SMP cfgSebastian Huber1-1/+1
Bug introduced by f778b7f3f177a39505aeea61206e95fc54f875be. Update #3001.
2017-05-12confdefs.h: Use SMP scheduler only if necessarySebastian Huber1-1/+1
Update #3001.
2017-05-11confdefs.h: CONFIGURE_DISABLE_SMP_CONFIGURATIONSebastian Huber1-2/+6
Enable the SMP configuration by default in case SMP is enabled. Add configuration option CONFIGURE_DISABLE_SMP_CONFIGURATION to disable it explicitly. Add CONFIGURE_DISABLE_SMP_CONFIGURATION to all test which would fail otherwise. Update #3001.
2017-05-05posix/mman: add mmap support for shm objectsGedare Bloom1-1/+2
Update #2859.
2017-02-15sapi: Fix warningsSebastian Huber1-1/+1
2017-02-14Rename CONFIGURE_SMP_MAXIMUM_PROCESSORSSebastian Huber1-43/+44
Rename CONFIGURE_SMP_MAXIMUM_PROCESSORS to CONFIGURE_MAXIMUM_PROCESSORS since the SMP part is superfluous. Update #2894.
2017-02-03Prefix confdefs.h internal def with an underscoreSebastian Huber1-455/+352
Close #2895.
2017-02-03confdefs.h: SimplifySebastian Huber1-3/+1
2017-02-02confdefs.h: Only define _CONFIGURE_SMP_APPLICATION if RTEMS_SMP definedKevin Kirspel1-0/+2
2017-02-02Remove CONFIGURE_SMP_APPLICATIONSebastian Huber2-28/+18
Enable the SMP support if CONFIGURE_SMP_MAXIMUM_PROCESSORS > 1. Update #2893.
2017-01-26sapi: Add rtems_task_terminate_extensionSebastian Huber1-0/+1
2017-01-13posix: shared memory supportGedare Bloom1-0/+39
Add POSIX shared memory manager (Shm). Includes a hook-based approach for the backing memory storage that defaults to the Workspace, and a test is provided using the heap. A test is also provided for the basic use of mmap'ing a shared memory object. This test currently fails at the mmap stage due to no support for mmap.
2017-01-13score: Add _Thread_Set_name()Sebastian Huber1-0/+18
Add configuration option CONFIGURE_MAXIMUM_THREAD_NAME_SIZE. Update #2858.
2016-12-21Clarify simple timecounter documentationSebastian Huber1-13/+21
2016-12-12Add INTERNAL_ERROR_LIBIO_STDERR_FD_OPEN_FAILEDSebastian Huber1-1/+2
Update #2825.
2016-12-12Add INTERNAL_ERROR_LIBIO_STDOUT_FD_OPEN_FAILEDSebastian Huber1-1/+2
Update #2825.
2016-12-12Add INTERNAL_ERROR_LIBIO_SEM_CREATE_FAILEDSebastian Huber1-1/+2
Update #2825.
2016-12-12INTERNAL_ERROR_LIBIO_USER_ENV_KEY_CREATE_FAILEDSebastian Huber1-1/+2
Update #2825.
2016-12-12Add INTERNAL_ERROR_POSIX_INIT_THREAD_CREATE_FAILEDSebastian Huber1-1/+2
Update #2825.
2016-12-12Add INTERNAL_ERROR_RTEMS_INIT_TASK_CREATE_FAILEDSebastian Huber1-1/+2
Update #2825.
2016-12-09score: Remove fatal is internal indicatorSebastian Huber6-46/+14
The fatal is internal indicator is redundant since the fatal source and error code uniquely identify a fatal error. Keep the fatal user extension is internal parameter for backward compatibility and set it to false always. Update #2825.
2016-12-06score: Simplify linker set APISebastian Huber1-8/+3
Resurrect RTEMS_LINKER_SET_BEGIN() and RTEMS_LINKER_SET_END(). Add new macros RTEMS_LINKER_SET_ITEM_COUNT(), RTEMS_LINKER_SET_IS_EMPTY(), and RTEMS_LINKER_SET_FOREACH(). Remove confusing RTEMS_LINKER_SET_ASSIGN_BEGIN() and RTEMS_LINKER_SET_ASSIGN_END(). Fix RTEMS_LINKER_SET_SIZE() to return the size in characters as specified by the documentation. Update #2408. Update #2790.
2016-11-23score: Uncomment unused internal error codesSebastian Huber1-3/+3
Update #2825.
2016-11-23posix: Add self-contained pthread spinlockSebastian Huber1-28/+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.
2016-11-23score: Add thread queue enqueue calloutSebastian Huber1-1/+1
Replace the expected thread dispatch disable level with a thread queue enqueue callout. This enables the use of _Thread_Dispatch_direct() in the thread queue enqueue procedure. This avoids impossible exection paths, e.g. Per_CPU_Control::dispatch_necessary is always true.
2016-11-23score: Robust thread dispatchSebastian Huber1-1/+2
On SMP configurations, it is a fatal error to call blocking operating system with interrupts disabled, since this prevents delivery of inter-processor interrupts. This could lead to executing threads which are not allowed to execute resulting in undefined behaviour. The ARM Cortex-M port has a similar problem, since the interrupt state is not a part of the thread context. Update #2811.
2016-11-18score: Add and use _Thread_Dispatch_direct()Sebastian Huber1-1/+2
This function is useful for operations which synchronously block, e.g. self restart, self deletion, yield, sleep. It helps to detect if these operations are called in the wrong context. Since the thread dispatch necessary indicator is not used, this is more robust in some SMP situations. Update #2751.
2016-11-09score: Rename _Scheduler_AssignmentsSebastian Huber1-3/+3
Rename _Scheduler_Assignments into _Scheduler_Initial_assignments to make it clear that they may not reflect the run-time scheduler assignment. Update #2797.
2016-11-02score: First part of new MrsP implementationSebastian Huber1-1/+2
Update #2556.
2016-10-12score: More robust linker setsSebastian Huber1-2/+5
Update #2408. Update #2790.
2016-09-21score: Add scheduler node table for each threadSebastian Huber1-29/+35
Update #2556.
2016-09-06score: Add missing const qualifiersSebastian Huber1-4/+4
2016-08-08score: Add debug support to red-black treesSebastian Huber1-0/+1
This helps to detect double insert and extract errors.
2016-07-27score: Add deadlock detectionSebastian Huber1-2/+3
The mutex objects use the owner field of the thread queues for the mutex owner. Use this and add a deadlock detection to _Thread_queue_Enqueue_critical() for thread queues with an owner. Update #2412. Update #2556. Close #2765.
2016-07-22score: Add debug support to chainsSebastian Huber3-0/+17
This helps to detect * double insert, append, prepend errors, and * get from empty chain errors.
2016-06-22score: Move _RBTree_Find()Sebastian Huber4-21/+119
The _RBTree_Find() is no longer used in the score. Move it to sapi and make it rtems_rbtree_find(). Move corresponding types and support functions to sapi.
2016-06-22score: Move _RBTree_Insert()Sebastian Huber3-11/+79
The _RBTree_Insert() is no longer used in the score. Move it to sapi and make it rtems_rbtree_insert().
2016-06-09confdefs.h: Do not hide network file systemsSebastian Huber1-34/+30
Do not hide network file systems if RTEMS_NETWORKING is not defined, since they may be provided by the LibBSD.