summaryrefslogtreecommitdiff
path: root/cpukit (follow)
AgeCommit message (Collapse)Author
2016-05-30score: Rework CORE priority ceiling mutexSebastian Huber
Rework seize and surrender methods to use CORE_ceiling_mutex_Control. This eliminates CORE_mutex_Disciplines.
2016-05-30score: Add CORE mutex variantsSebastian Huber
Add CORE_recursive_mutex_Control and CORE_ceiling_mutex_Control to avoid the run-time evaluation of attributes to figure out how a particular mutex methods should behave. Start with the no protocol variants. This eliminates the CORE_MUTEX_DISCIPLINES_FIFO and CORE_MUTEX_DISCIPLINES_PRIORITY disciplines.
2016-05-30posix: Delete POSIX_Mutex_Protocol::process_sharedSebastian Huber
2016-05-30posix: Avoid use of internal mutex methodsSebastian Huber
Avoid use of internal mutex methods for pthread_mutex_setprioceiling().
2016-05-30posix: Avoid use of internal mutex methodsSebastian Huber
Avoid use of internal mutex methods for condition variables.
2016-05-30rtems: Remove superfluous includesSebastian Huber
2016-05-30rtems: Simplify rtems_semaphore_delete()Sebastian Huber
Due to the unified status codes, we can now use a common flush and destroy method for semaphore and mutex variants.
2016-05-30rtems: Simplify rtems_semaphore_flush()Sebastian Huber
Due to the unified status codes, we can now use a common flush method for semaphore and mutex variants.
2016-05-30score: Simplify CORE mutexSebastian Huber
Remove superfluous support for simple binary semaphores. With this we can get rid of the CORE_MUTEX_NESTING_BLOCKS variant.
2016-05-30score: Add semaphore variantsSebastian Huber
2016-05-30rtems: Simplify rtems_semaphore_delete()Sebastian Huber
2016-05-30score: Use thread queue lock for MrsPSebastian Huber
Replace the ISR lock in MRSP_Control with a thread queue. This simplifies the Classic semaphore implementation. Only the lock part of the thread queue is used.
2016-05-30score: _CORE_mutex_Check_dispatch_for_seize()Sebastian Huber
Move the safety check performed by _CORE_mutex_Check_dispatch_for_seize() out of the performance critical path and generalize it. Blocking on a thread queue with an unexpected thread dispatch disabled level is illegal in all system states. Add the expected thread dispatch disable level (which may be 1 or 2 depending on the operation) to Thread_queue_Context and use it in _Thread_queue_Enqueue_critical().
2016-05-30score: Add _Thread_queue_Context_set_MP_callout()Sebastian Huber
Add _Thread_queue_Context_set_MP_callout() to simplify _Thread_queue_Context_initialize(). This makes it possible to more easily add additional fields to Thread_queue_Context.
2016-05-30score: Adjust thread queue layoutSebastian Huber
Adjust thread queue layout according to Newlib. This makes it possible to use the same implementation for <sys/lock.h> and CORE mutexes in the future.
2016-05-30score: Use Newlib provided <machine/endian.h>Sebastian Huber
2016-05-30network: Align with Newlib type definitionsSebastian Huber
2016-05-30score: Add libatomic supportSebastian Huber
Close #2695.
2016-05-26score: Add Status_Control for all APIsSebastian Huber
Unify the status codes of the Classic and POSIX API to use the new enum Status_Control. This eliminates the Thread_Control::Wait::timeout_code field and the timeout parameter of _Thread_queue_Enqueue_critical() and _MPCI_Send_request_packet(). It gets rid of the status code translation tables and instead uses simple bit operations to get the status for a particular API. This enables translation of status code constants at compile time. Add _Thread_Wait_get_status() to avoid direct access of thread internal data structures.
2016-05-26posix: Fix sem_init() with too large initial valueSebastian Huber
Close #2721.
2016-05-26Fix semaphore post overflow statusSebastian Huber
Close #2720.
2016-05-25posix: Fix pthread_spin_unlock() error statusSebastian Huber
Close #2719.
2016-05-25score: Move thread queue MP callout to contextSebastian Huber
Drop the multiprocessing (MP) dependent callout parameter from the thread queue extract, dequeue, flush and unblock methods. Merge this parameter with the lock context into new structure Thread_queue_Context. This helps to gets rid of the conditionally compiled method call helpers.
2016-05-25score: Get rid of mp_id parameterSebastian Huber
Get rid of the mp_id parameter used for some thread queue methods. Use THREAD_QUEUE_QUEUE_TO_OBJECT() instead.
2016-05-25score: Move thread queue object supportSebastian Huber
2016-05-25mpci: Fix thread queue flush methodSebastian Huber
We must call the MP callout for proxies if we unblock them after a thread queue extraction. This was missing in _Thread_queue_Flush_critical(). Move thread remove timer and unblock code to new function _Thread_Remove_timer_and_unblock().
2016-05-25confdefs.h: Fix heap alloc size estimateSebastian Huber
Account for the heap minimum block size.
2016-05-25libmisc: Fix printk format warnings.Chris Johns
2016-05-25score/i386: Fix printk format warnings.Chris Johns
2016-05-25libcsupport: Fix printk warnings.Chris Johns
2016-05-25libfs/jff2: Avoid printk format warnings.Chris Johns
This change does not fix the printk format warnings rather it ignores them.
2016-05-25cpukit, testsuite: Add rtems_printf and rtems_printer support.Chris Johns
This change adds rtems_printf and related functions and wraps the RTEMS print plugin support into a user API. All references to the plugin are removed and replaced with the rtems_printer interface. Printk and related functions are made to return a valid number of characters formatted and output. The function attribute to check printf functions has been added to rtems_printf and printk. No changes to remove warrnings are part of this patch set. The testsuite has been moved over to the rtems_printer. The testsuite has a mix of rtems_printer access and direct print control via the tmacros.h header file. The support for begink/endk has been removed as it served no purpose and only confused the code base. The testsuite has not been refactored to use rtems_printf. This is future work.
2016-05-24score: Fix blocking _CORE_message_queue_Submit()Sebastian Huber
Close #2718.
2016-05-24score: _CORE_message_queue_Seize()Sebastian Huber
Delete unused parameter.
2016-05-24mpci: Add missing return statementsSebastian Huber
2016-05-20score: _CORE_semaphore_Seize()Sebastian Huber
Delete unused parameter.
2016-05-20Replace *_Get_interrupt_disable() with *_Get()Sebastian Huber
Uniformly use *_Get() to get an object by identifier with a lock context.
2016-05-20score: Rename _Objects_Get_local()Sebastian Huber
Rename _Objects_Get_local() into _Objects_Get(). Confusions with the previous _Objects_Get() function are avoided since the Objects_Locations parameter is gone.
2016-05-20score: Delete unused _Objects_Get_isr_disable()Sebastian Huber
Delete now unused Objects_Locations.
2016-05-20rtems: _Semaphore_Get_interrupt_disable()Sebastian Huber
Use _Objects_Get_local() for _Semaphore_Get_interrupt_disable() to get rid of the location parameter. Move remote object handling to semaphore MPCI support.
2016-05-20rtems: _Message_queue_Get_interrupt_disable()Sebastian Huber
Use _Objects_Get_local() for _Message_queue_Get_interrupt_disable() to get rid of the location parameter. Move remote object handling to message queue MPCI support.
2016-05-20rtems: Remove location from _Partition_Get()Sebastian Huber
Use _Objects_Get_local() for _Partition_Get() to get rid of the location parameter. Move remote object handling to partition MPCI support.
2016-05-20mpci: Delete unused region supportSebastian Huber
2016-05-20mpci: Simplify _Objects_MP_Is_remote()Sebastian Huber
2016-05-20posix: Add const to _POSIX_Keys_Key_value_find()Sebastian Huber
2016-05-20score: Add const to _RBTree_Find_inline()Sebastian Huber
2016-05-20score: Delete unused _Objects_Get_local_object()Sebastian Huber
2016-05-20posix: Remove dead code and shrink commentSebastian Huber
2016-05-20posix: Add and use _POSIX_Get_object_body()Sebastian Huber
2016-05-20score: Use _RBTree_Insert_inline()Sebastian Huber
Use _RBTree_Insert_inline() for priority thread queues. Update #2556.