Commit Graph

34104 Commits

Author SHA1 Message Date
Sebastian Huber
f5a2fd8628 config: Add <rtems/confdefs/threads.h>
Remove all comments and copyrightable content from the moved content.
Use BSD-2-Clause license for new file.

Update #3053.
Update #3875.
2020-02-25 07:18:38 +01:00
Sebastian Huber
40db0518a9 config: Add <rtems/confdefs/unlimited.h>
Remove all comments and copyrightable content from the moved content.
Use BSD-2-Clause license for new file.

Update #3053.
Update #3875.
2020-02-25 07:18:38 +01:00
Sebastian Huber
7b6596f56f config: Add <rtems/confdefs/iodrivers.h>
Remove all comments and copyrightable content from the moved content.
Use BSD-2-Clause license for new file.

Update #3053.
Update #3875.
2020-02-25 07:18:38 +01:00
Sebastian Huber
fe84ab5c6c config: Add <rtems/confdefs/console.h>
Remove all comments and copyrightable content from the moved content.
Use BSD-2-Clause license for new file.

Update #3053.
Update #3875.
2020-02-25 07:18:38 +01:00
Sebastian Huber
8314933907 config: Add <rtems/confdefs/initthread.h>
Remove all comments and copyrightable content from the moved content.
Use BSD-2-Clause license for new file.

Update #3053.
Update #3875.
2020-02-25 07:18:38 +01:00
Sebastian Huber
b15d1cba0f config: Add <rtems/confdefs/inittask.h>
Remove all comments and copyrightable content from the moved content.
Use BSD-2-Clause license for new file.

Update #3053.
Update #3875.
2020-02-25 07:18:37 +01:00
Sebastian Huber
8f3419bd88 config: Add <rtems/confdefs/extensions.h>
Remove all comments and copyrightable content from the moved content.
Use BSD-2-Clause license for new file.

Update #3053.
Update #3875.
2020-02-25 07:18:37 +01:00
Sebastian Huber
fb0caca9bc config: Add <rtems/confdefs/newlib.h>
Remove all comments and copyrightable content from the moved content.
Use BSD-2-Clause license for new file.

Update #3053.
Update #3875.
2020-02-25 07:18:37 +01:00
Sebastian Huber
32561f5f5b config: Add <rtems/confdefs/clock.h>
Remove all comments and copyrightable content from the moved content.
Use BSD-2-Clause license for new file.

Update #3053.
Update #3875.
2020-02-25 07:18:37 +01:00
Sebastian Huber
1d35bf2a7f config: Add <rtems/confdefs/mcpi.h>
Remove all comments and copyrightable content from the moved content.
Use BSD-2-Clause license for new file.

Update #3053.
Update #3875.
2020-02-25 07:18:37 +01:00
Sebastian Huber
03aff2cf85 config: Add <rtems/confdefs/malloc.h>
Remove all comments and copyrightable content from the moved content.
Use BSD-2-Clause license for new file.

Move the default configuration to library files so that application
configurations do not include the definitions for the default case.

Update #3053.
Update #3875.
2020-02-25 07:18:37 +01:00
Sebastian Huber
691b61498e config: Add <rtems/confdefs/bdbuf.h>
Remove all comments and copyrightable content from the moved content.
Use BSD-2-Clause license for new file.

Update #3053.
Update #3875.
2020-02-25 07:18:37 +01:00
Sebastian Huber
591e973662 config: Add <rtems/confdefs/scheduler.h>
Remove all comments and copyrightable content from the moved content.
Use BSD-2-Clause license for new file.

Update #3053.
Update #3875.
2020-02-25 07:18:37 +01:00
Sebastian Huber
16082210d6 config: Add <rtems/confdefs/libio.h>
Remove all comments and copyrightable content from the moved content.
Use BSD-2-Clause license for new file.

Update #3053.
Update #3875.
2020-02-25 07:18:36 +01:00
Sebastian Huber
0f8e139e14 config: Add <rtems/confdefs/percpu.h>
Remove comments and copyrightable content from the moved content.  Use
BSD-2-Clause for new file according to file history of
<rtems/confdefs.h>.

Update #3053.
Update #3875.
2020-02-25 07:18:36 +01:00
Sebastian Huber
f45d0b2f8e config: Add <rtems/confdefs/bsp.h>
Remove all comments and copyrightable content from the moved content.
Use BSD-2-Clause license for new file.

Update #3053.
Update #3875.
2020-02-25 07:18:36 +01:00
Sebastian Huber
55a7316159 config: Add <rtems/confdefs/libpci.h>
Derive copyright and license for new file form the file history.

Update #3875.
2020-02-25 07:18:36 +01:00
Sebastian Huber
cadd8d18e3 config: Add <rtems/confdefs/obsolete.h>
Unify handling of obsolete configuration options.  Remove comments and
copyrightable content from the moved content.  Use BSD-2-Clause license
for new file.

Update #3053.
Update #3875.
2020-02-25 07:18:36 +01:00
Sebastian Huber
0561cc1c7c config: Remove _Configure_Max_Objects()
Use rtems_resource_maximum_per_allocation() directly.  The use of
_Configure_Zero_or_one() was superfluous.

Update #3875.
2020-02-25 07:18:36 +01:00
Sebastian Huber
cfe683859c config: Improve _Configure_From_workspace()
Commit 4c09f4b3fe changed the cast from
size_t to ssize_t to try to fix an workspace issue on 16-bit
architectures.  This change was reverted by commit
7ff6115b8b for the workspace but not
_Configure_From_workspace().  Change the cast to uintptr_t to be in line
with the Heap Handler.
2020-02-25 07:18:36 +01:00
Sebastian Huber
c7f748a100 config: Remove CONFIGURE_DISABLE_SMP_CONFIGURATION
The CONFIGURE_DISABLE_SMP_CONFIGURATION configuration option and
rtems_configuration_is_smp_enabled() were added during the SMP support
development cycle as a workaround to fix some testsuite failures in SMP
configurations.  All use cases were replaced with tests for specific
conditions.  The configuration option and test macro were undocumented.

Close #3876.
2020-02-25 07:18:36 +01:00
Sebastian Huber
ca82a6038e rtems: Change timer server task mode setting
Use the non-preempt mode only in uni-processor configurations.

Update #3876.
2020-02-25 07:18:35 +01:00
Sebastian Huber
e50e42b820 score: _Scheduler_Is_non_preempt_mode_supported()
If the non-preempt mode for threads is supported depends on the
scheduler implementation.  Add
_Scheduler_Is_non_preempt_mode_supported() to indicate this.

Update #3876.
2020-02-25 07:18:35 +01:00
Sebastian Huber
5b8d80d726 config: CONFIGURE_INIT_TASK_INITIAL_MODES
Determine the default for CONFIGURE_INIT_TASK_INITIAL_MODES depeding on
whether RTEMS_SMP is defined or not.

In the tests, use CONFIGURE_INIT_TASK_INITIAL_MODES to explicitly
request RTEMS_NO_PREEMPT mode if necessary.

Update #3876.
2020-02-25 07:18:35 +01:00
Sebastian Huber
51614bd5bf bsps/clock: Use _SMP_Get_processor_maximum()
Use a specific test to enable the fast idle mode instead of using the
rtems_configuration_is_smp_enabled() workaround.

Update #3876.
2020-02-25 07:18:35 +01:00
Sebastian Huber
1ada3e55f6 score: Add _SMP_Need_inter_processor_interrupts()
Test for the proper system condition instead of using the
rtems_configuration_is_smp_enabled() workaround.

Update #3876.
2020-02-25 07:18:35 +01:00
Sebastian Huber
ba74ebde74 libio: Add POSIX user environment pointer to TCB
The IO library used a POSIX key to store an optional POSIX user
environment pointer.  This pulled in the POSIX keys support in every
application configuration.  Add a user environment pointer to the thread
control block (TCB) instead.  Applications which do not need the POSIX
user environment will just get an overhead of one pointer per thread.

Close #3882.
2020-02-25 07:18:26 +01:00
Sebastian Huber
ba46b9368e config: Add _SMP_Is_enabled
Move the is SMP enabled configuration constant out of the
configuration table.

Since this was the last configuration constant in
rtems_configuration_table, remove this type.

Update #3875.
2020-02-25 07:15:19 +01:00
Sebastian Huber
567455b67a config: Add _SMP_Processor_configure_maximum
Move the processor maximum configuration constant out of the
configuration table.

Update #3875.
2020-02-25 07:15:19 +01:00
Sebastian Huber
ad85c00966 config: Add _Workspace_Is_unified
Move the unified workspace configuration constant out of the
configuration table.

Provide a default definition of the unified workspace constant.

Update #3875.
2020-02-25 07:15:19 +01:00
Sebastian Huber
ba7b2df7f0 config: Add _Workspace_Size
Move the workspace size configuration constant out of the configuration
table.

Update #3875.
2020-02-25 07:15:19 +01:00
Sebastian Huber
5180762ccb config: Add _Thread_Idle_body
Move the idle thread body configuration constant out of the
configuration table.

Provide a default definition of the idle thread body constant.

Update #3875.
2020-02-25 07:15:19 +01:00
Sebastian Huber
c70d112599 config: Add _Thread_Idle_stack_size
Move the idle thread stack size configuration constant out of the
configuration table.

Add THREAD_IDLE_STACK_SIZE_DEFAULT and use it to provide a default
definition of the idle thread stack size constant.

Update #3875.
2020-02-25 07:15:19 +01:00
Sebastian Huber
308a2e0fdc config: Add _Watchdog_Ticks_per_timeslice
Move the ticks per timeslice configuration constant out of the
configuration table.

Add WATCHDOG_TICKS_PER_TIMESLICE_DEFAULT and use it to provide a default
definition of the watchdog ticks per timeslice constant.

Update #3875.
2020-02-25 07:15:18 +01:00
Sebastian Huber
b8648bdc0c config: Add _Watchdog_Microseconds_per_tick
Move the microseconds per tick configuration constant out of the
configuration table.

Add WATCHDOG_MICROSECONDS_PER_TICK_DEFAULT and use it to provide a
default definition of the watchdog ticks constants.

Update #3875.
2020-02-25 07:15:18 +01:00
Sebastian Huber
3b4795b46f config: Remove CONFIGURE_POSIX_HAS_OWN_INIT_THREAD_TABLE
The CONFIGURE_HAS_OWN_INIT_TASK_TABLE and
CONFIGURE_POSIX_HAS_OWN_INIT_THREAD_TABLE are the last *_HAS_OWN_*
configuration options.  These two options are probably unused, see also:

* https://lists.rtems.org/pipermail/users/2019-April/033129.html

* https://lists.rtems.org/pipermail/users/2019-April/033130.html

Removing them simplifies the configuration. If there is a real user need
which shows up after the removal, we can resurrect them on demand.

Using CONFIGURE_POSIX_HAS_OWN_INIT_THREAD_TABLE would have required the
use of the undocumented CONFIGURE_POSIX_INIT_THREAD_TABLE_NAME and
CONFIGURE_POSIX_INIT_THREAD_TABLE_SIZE configuration options.

Update #3874.
2020-02-25 07:15:18 +01:00
Sebastian Huber
9bdb6aa31c config: Bring back RTEMS 4.11 configuration table
This improves API backward compatibility of RTEMS 5.1 to previous
versions.
2020-02-25 07:15:18 +01:00
Sebastian Huber
a9bc7a5516 rtems: Simplify _RTEMS_tasks_Initialize_user_task()
Due to the system initialization order, the _Thread_Global_constructor
must be 0 in this function.
2020-02-25 07:15:18 +01:00
Sebastian Huber
9520ec3a2a config: Simplify initialization task config
With the removal of the CONFIGURE_HAS_OWN_INIT_TASK_TABLE configuration
option at most one Classic API user initialization task can be
configured.

Provide an RTEMS API configuration table for backward compatibility.

Update #3873.
2020-02-25 07:15:18 +01:00
Sebastian Huber
6b0873ffdf config: Remove CONFIGURE_HAS_OWN_INIT_TASK_TABLE
The CONFIGURE_HAS_OWN_INIT_TASK_TABLE and
CONFIGURE_POSIX_HAS_OWN_INIT_THREAD_TABLE are the last *_HAS_OWN_*
configuration options.  These two options are probably unused, see also:

  * https://lists.rtems.org/pipermail/users/2019-April/033129.html

  * https://lists.rtems.org/pipermail/users/2019-April/033130.html

Removing them simplifies the configuration. If there is a real user need
which shows up after the removal, we can resurrect them on demand.

Using CONFIGURE_HAS_OWN_INIT_TASK_TABLE would have required the use of
the undocumented CONFIGURE_INIT_TASK_TABLE and
CONFIGURE_INIT_TASK_TABLE_SIZE configuration options.

Update #3873.
2020-02-25 07:15:18 +01:00
Sebastian Huber
77ee8276ef sptests/spcbssched03: Include missing header file
Update #3875.
2020-02-25 07:15:18 +01:00
Sebastian Huber
5d1d3485cb libtests/stackchk: Include missing header file
Update #3875.
2020-02-25 07:15:17 +01:00
Sebastian Huber
f6fcfea12f mptests/mp14: Include missing header file
Include <mpci.h> for MPCI_Print_statistics().

Update #3875.
2020-02-25 07:01:31 +01:00
Sebastian Huber
e58ecb8433 bsps/arm: Initialize priorities of PPIs
At least on GICv1 the interrupts 0 up to including 31 are so called
Peripheral Private Interrupts (PPIs).  We have to initialize the
priority of the PPIs on secondary processors.
2020-02-24 09:21:47 +01:00
Amaan Cheval
486829b276 Add Amaan to MAINTAINERS 2020-02-21 10:22:34 +05:30
Dennis Pfau
7006f08b86 drvmgr: Fix determination of prefix in grlib uart driver
drvmgr_get_dev_prefix returns 0 if a prefix was found.
Therefore the if condition needs to check for 0, i.e. DRVMGR_OK.
2020-02-20 09:57:27 -07:00
Chris Johns
3f7ebddfa4 testsuite/newlib: Check newlib does not touch an assigned std FILE pointer
Update #3870
2020-02-18 08:47:47 +11:00
Sebastian Huber
5886462799 config: Remove unused declaration and defines
Update #3875.
2020-02-17 08:22:31 +01:00
Sebastian Huber
dbb7ac6f23 posix: Remove <rtems/posix/ptimer.h>
This file contained duplicate prototypes for standard POSIX functions
declared in <time.h>.
2020-02-17 08:20:09 +01:00
Sebastian Huber
c621c11b4f monitor: Use proper API for all config constants 2020-02-17 08:03:56 +01:00