summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* score: Use an ISR lock for Per_CPU_Control::LockSebastian Huber2019-04-125-22/+23
| | | | | | The use of a hand crafted lock for Per_CPU_Control::Lock was necessary at some point in the SMP support development, but it is no longer justified.
* score: Add _ISR_lock_Set_name()Sebastian Huber2019-04-121-2/+3
| | | | | Add _ISR_lock_Set_name() to optimize the initialization of zero-initialized locks.
* score: Rename _SMP_Get_processor_count()Sebastian Huber2019-04-115-29/+39
| | | | | | | Rename _SMP_Get_processor_count() in _SMP_Get_processor_maximum() to be in line with the API level rtems_scheduler_get_processor_maximum(). Update #3732.
* score: Rename _SMP_Processor_countSebastian Huber2019-04-111-2/+2
| | | | | | | Rename _SMP_Processor_count in _SMP_Processor_maximum to be in line with the API level rtems_scheduler_get_processor_maximum(). Update #3732.
* Remove superfluous run-time checkSebastian Huber2019-04-091-4/+1
| | | | | The _Objects_Information_table[ the_api ] is never NULL for a valid API index.
* doxygen: Rename Score* groups in RTEMSScore*Sebastian Huber2019-04-04156-156/+156
| | | | Update #3706
* score: Rename ScoreCPU Doxygen groupSebastian Huber2019-03-261-1/+0
| | | | Update #3706.
* Remove superfluous <rtems/system.h> includesSebastian Huber2019-03-1421-21/+0
|
* coremsgseize.c: Fix spelling errorJoel Sherrill2019-03-121-1/+1
|
* score: Fix _Scheduler_EDF_Cancel_job()Sebastian Huber2019-03-011-2/+4
| | | | Remove the priority node only in case it is active.
* Remove explicit file names from @fileSebastian Huber2019-02-284-4/+4
| | | | | | This makes the @file documentation independent of the actual file name. Update #3707.
* score: Avoid some deadlocks in _Once()Sebastian Huber2019-02-181-43/+74
| | | | | | | | Recursive usage of the same pthread_once_t results now in a deadlock. Previously, an error of EINVAL was returned. This usage scenario is invalid according to the POSIX pthread_once() specification. Close #3334.
* score: Fix plain priority thread queues (SMP)Sebastian Huber2019-02-071-0/+8
| | | | We must add/remove the priority queue to the FIFO of priority queues.
* score: Avoid internal API and use ISR lockSebastian Huber2019-01-181-9/+9
|
* Adjust interrupt mode tests for some CPU portsSebastian Huber2019-01-092-2/+4
| | | | | | | In case the robust thread dispatch is enabled by the CPU port, then the interrupt level must not be changed through the task mode. Update #3000.
* Separate task mode checksSebastian Huber2019-01-091-8/+11
| | | | Update #3000.
* score: Remove superfluous include from chainimpl.hSebastian Huber2019-01-071-0/+1
|
* score: Fix per-CPU data allocationSebastian Huber2018-12-181-26/+44
| | | | | | | | | | | Allocate the per-CPU data for secondary processors directly from the heap areas before heap initialization and not via _Workspace_Allocate_aligned(). This avoids dependency on the workspace allocator. It fixes also a problem on some platforms (e.g. QorIQ) where at this early point in the system initialization the top of the RAM is used by low-level startup code on secondary processors (boot pages). Update #3507.
* score: Static Objects_Information initializationSebastian Huber2018-12-1413-190/+98
| | | | | | | | | | | Statically allocate the objects information together with the initial set of objects either via <rtems/confdefs.h>. Provide default object informations with zero objects via librtemscpu.a. This greatly simplifies the workspace size estimate. RTEMS applications which do not use the unlimited objects option are easier to debug since all objects reside now in statically allocated objects of the right types. Close #3621.
* score: Remove Objects_Information::auto_extendSebastian Huber2018-12-144-25/+29
| | | | | | | Use Objects_Information::objects_per_block to provide this information. Add and use _Objects_Is_auto_extend(). Update #3621.
* score: Remove Objects_Information::the_apiSebastian Huber2018-12-072-14/+12
| | | | | | | Remove Objects_Information::the_class. This information is already contained in Objects_Information::maximum_id. Update #3621.
* score: Remove Objects_Information::maximumSebastian Huber2018-12-079-50/+50
| | | | | | | This information is already present in Objects_Information::maximum_id. Add and use _Objects_Get_maximum_index(). Update #3621.
* score: Optimize object lookupSebastian Huber2018-12-0711-65/+44
| | | | | | | | | | | | | | | | Use the maximum ID for the ID to object translation. Using the maximum ID gets rid of an additional load from the object information in _Objects_Get(). In addition, object lookups fail for every ID in case the object information is cleared to zero. This makes it a bit more robust during system startup (see new tests in spconfig02). The local table no longer needs a NULL pointer entry at array index zero. Adjust all the object iteration loops accordingly. Remove Objects_Information::minimum_id since it contains only redundant information. Add _Objects_Get_minimum_id() to get the minimum ID. Update #3621.
* score: Rename Objects_Information::allocation_sizeSebastian Huber2018-12-075-33/+45
| | | | | | | | Rename Objects_Information::allocation_size in Objects_Information::objects_per_block. Adjust integer types in _Objects_Shrink_information() and _Objects_Free(). Update #3621.
* score: Rename Objects_Information::sizeSebastian Huber2018-12-074-6/+6
| | | | | | | | Rename Objects_Information::size to Objects_Information::object_size. Change its type from size_t to uint16_t and move it to reduce the size of Objects_Information. Update #3621.
* score: Remove Objects_Information::is_stringSebastian Huber2018-12-077-31/+29
| | | | | | Use Objects_Information::name_length to store this information. Update #3621.
* score: Remove dead codeSebastian Huber2018-12-071-16/+0
| | | | Update #3621.
* score: <rtems/score/smplockstats.h>Sebastian Huber2018-11-261-7/+16
| | | | | | | Remove <rtems/score/chainimpl.h> include from <rtems/score/smplockstats.h>. Close #3598.
* score: Simplify _Workspace_String_duplicate()Sebastian Huber2018-11-211-6/+7
|
* or1k: Support GCC 9Sebastian Huber2018-11-141-1/+2
| | | | Close #3602.
* score: Introduce <rtems/score/watchdogticks.h>Sebastian Huber2018-11-121-1/+1
| | | | | | | Separate the definitions related to watchdog ticks from the watchdog structures. Update #3598.
* score: Rename interrupt stack symbolsSebastian Huber2018-11-081-1/+1
| | | | | | | | | | | | | Rename * _Configuration_Interrupt_stack_area_begin in _ISR_Stack_area_begin, * _Configuration_Interrupt_stack_area_end in _ISR_Stack_area_end, and * _Configuration_Interrupt_stack_size in _ISR_Stack_size. Move definitions to <rtems/score/isr.h>. The new names are considerable shorter and in the right namespace. Update #3459.
* score: Optimize Objects_InformationSebastian Huber2018-11-061-64/+52
| | | | | | | Reduce structure internal padding. Group members used by _Objects_Get() together. Reduce size of some members. Format and simplify _Objects_Extend_information().
* posix: Provide threads by defaultSebastian Huber2018-10-293-20/+0
| | | | Update #2514.
* posix: Split posix_api_configuration_tableSebastian Huber2018-10-291-1/+2
| | | | | | Use separate configuration variables to avoid false dependencies. Update #2514.
* Remove RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMESSebastian Huber2018-10-297-49/+32
| | | | | | | | | Enable support for string objects names unconditionally. Add const qualifier throughout. Split _Objects_Namespace_remove() into _Objects_Namespace_remove_u32() and _Objects_Namespace_remove_string() to avoid an unnecessary dependency on _Workspace_Free(). Update #2514.
* score: Remove bogus thread object name supportSebastian Huber2018-10-291-8/+4
| | | | Update #2514.
* Remove INTERNAL_ERROR_INTERRUPT_STACK_TOO_SMALLSebastian Huber2018-09-211-4/+0
| | | | | | | | | | | | The configured interrupt stack size (CONFIGURE_INTERRUPT_STACK_SIZE) is checked against the minimum task stack size. The minium tasks task stack size is also a configuration option (CONFIGURE_MINIMUM_TASK_STACK_SIZE). So, this check does not really help in case of configuration errors. In addition, the interrupt stack is also re-used as the initialization stack in most BSPs. It is probably better to use a stack checker to detect problems. Update #3459.
* score: Allocate per-CPU data only if necessarySebastian Huber2018-09-191-13/+17
| | | | | | | | | The _Workspace_Allocate_aligned() would returns a non-NULL pointer for a zero size allocation request if there is enough memory available. This conflicts with the size estimate of zero in _Workspace_Space_for_per_CPU_data() if the per-CPU data set is empty. Update #3507.
* score: Add thread pin/unpin supportSebastian Huber2018-09-105-27/+266
| | | | | | | | | Add support to temporarily pin a thread to its current processor. This may be used to access per-processor data structures in critical sections with enabled thread dispatching, e.g. a pinned thread is allowed to block. Update #3508.
* score: Add flexible per-CPU dataSebastian Huber2018-09-101-21/+107
| | | | Update #3507.
* score: Fix EDF SMP schedulerSebastian Huber2018-09-031-1/+24
| | | | | Fix a special case: block a one-to-one scheduled thread while having a non-empty affine ready queue on the same processor.
* score: Generalize SMP scheduler block supportSebastian Huber2018-09-035-1/+6
| | | | | | Add extract from scheduled function to the _Scheduler_SMP_Block() operation. This allows a scheduler implementation to do extra work in case a scheduled node is blocked.
* Update FreeBSD kernel timespec supportSebastian Huber2018-08-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This change is based on the following FreeBSD commit: "Make timespecadd(3) and friends public The timespecadd(3) family of macros were imported from NetBSD back in r35029. However, they were initially guarded by #ifdef _KERNEL. In the meantime, we have grown at least 28 syscalls that use timespecs in some way, leading many programs both inside and outside of the base system to redefine those macros. It's better just to make the definitions public. Our kernel currently defines two-argument versions of timespecadd and timespecsub. NetBSD, OpenBSD, and FreeDesktop.org's libbsd, however, define three-argument versions. Solaris also defines a three-argument version, but only in its kernel. This revision changes our definition to match the common three-argument version. Bump _FreeBSD_version due to the breaking KPI change. Discussed with: cem, jilles, ian, bde Differential Revision: https://reviews.freebsd.org/D14725" To make the change public (outside #ifdef _KERNEL) it must be integrated in Newlib. Update #3472.
* score: Do not inline _Thread_Dispatch_enable()Sebastian Huber2018-08-231-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This function is slighly too complex for inlining with two if statements. The caller already needs a stack frame due to the potential call to _Thread_Do_dispatch(). In _Thread_Dispatch_enable() the call to _Thread_Do_dispatch() can be optimized to a tail call. A text size comparision (text size after patch - text size before patch) / text size before patch on sparc/erc32 with SMP enabled showed these results: Minimum -0.000697892 (fsdosfsname01.exe) Median -0.00745021 (psxtimes01.exe) Maximum -0.0233032 (spscheduler01.exe) A text size comparision text size after patch - text size before patch on sparc/erc32 with SMP enabled showed these results: Minimum -3312 (ada_sp09.exe) Median -1024 (tm15.exe) Maximum -592 (spglobalcon01.exe)
* score: RTEMS_PREDICT_TRUE(), RTEMS_PREDICT_FALSE()Sebastian Huber2018-07-254-15/+17
| | | | | | | Add RTEMS_PREDICT_TRUE() and RTEMS_PREDICT_FALSE() for static branch prediction hints. Close #3475.
* _SMP_Start_multitasking_on_secondary_processor()Sebastian Huber2018-07-251-9/+17
| | | | | Pass current processor control as first parameter to make dependency more explicit.
* score: Add a FALLTHROUGH comment to kvprintf()Sebastian Huber2018-07-181-1/+4
| | | | | | This change was added to the FreeBSD version of this function. This was spotted by Coverity Scan.
* score: Fix _Scheduler_EDF_SMP_Set_affinity()Sebastian Huber2018-07-181-7/+5
| | | | | | Commit 8744498752ad4f0eaf9fb5640c6a0e0f2dc92fda broke the _Scheduler_EDF_SMP_Set_affinity() implementation. We must test the overall affinity against the online processors.
* score: Add postorder tree iteration supportSebastian Huber2018-07-161-0/+81
| | | | Update #3465.