RTEMS
|
Macros | |
#define | CONFIGURE_DIRTY_MEMORY |
This configuration option is a boolean feature define. More... | |
#define | CONFIGURE_DISABLE_NEWLIB_REENTRANCY |
This configuration option is a boolean feature define. More... | |
#define | CONFIGURE_EXECUTIVE_RAM_SIZE |
This configuration option is an integer define. More... | |
#define | CONFIGURE_EXTRA_TASK_STACKS |
This configuration option is an integer define. More... | |
#define | CONFIGURE_INITIAL_EXTENSIONS |
This configuration option is an initializer define. More... | |
#define | CONFIGURE_INTERRUPT_STACK_SIZE |
This configuration option is an integer define. More... | |
#define | CONFIGURE_MALLOC_DIRTY |
This configuration option is a boolean feature define. More... | |
#define | CONFIGURE_MAXIMUM_FILE_DESCRIPTORS |
This configuration option is an integer define. More... | |
#define | CONFIGURE_MAXIMUM_PROCESSORS |
This configuration option is an integer define. More... | |
#define | CONFIGURE_MAXIMUM_THREAD_NAME_SIZE |
This configuration option is an integer define. More... | |
#define | CONFIGURE_MEMORY_OVERHEAD |
This configuration option is an integer define. More... | |
#define | CONFIGURE_MESSAGE_BUFFER_MEMORY |
This configuration option is an integer define. More... | |
#define | CONFIGURE_MICROSECONDS_PER_TICK |
This configuration option is an integer define. More... | |
#define | CONFIGURE_MINIMUM_TASK_STACK_SIZE |
This configuration option is an integer define. More... | |
#define | CONFIGURE_STACK_CHECKER_ENABLED |
This configuration option is a boolean feature define. More... | |
#define | CONFIGURE_TICKS_PER_TIMESLICE |
This configuration option is an integer define. More... | |
#define | CONFIGURE_UNIFIED_WORK_AREAS |
This configuration option is a boolean feature define. More... | |
#define | CONFIGURE_UNLIMITED_ALLOCATION_SIZE |
This configuration option is an integer define. More... | |
#define | CONFIGURE_UNLIMITED_OBJECTS |
This configuration option is a boolean feature define. More... | |
#define | CONFIGURE_VERBOSE_SYSTEM_INITIALIZATION |
This configuration option is a boolean feature define. More... | |
#define | CONFIGURE_ZERO_WORKSPACE_AUTOMATICALLY |
This configuration option is a boolean feature define. More... | |
This section describes general system configuration options.
#define CONFIGURE_DIRTY_MEMORY |
This configuration option is a boolean feature define.
In case this configuration option is defined, then the memory areas used for the RTEMS Workspace and the C Program Heap are dirtied with a 0xCF
byte pattern during system initialization.
Dirtying memory can add significantly to system initialization time. It may assist in finding code that incorrectly assumes the contents of free memory areas is cleared to zero during system initialization. In case CONFIGURE_ZERO_WORKSPACE_AUTOMATICALLY is also defined, then the memory is first dirtied and then zeroed.
See also CONFIGURE_MALLOC_DIRTY.
Definition at line 2450 of file appl-config.h.
#define CONFIGURE_DISABLE_NEWLIB_REENTRANCY |
This configuration option is a boolean feature define.
In case this configuration option is defined, then the Newlib reentrancy support per thread is disabled and a global reentrancy structure is used.
TCB
. Use this option with care, since it can lead to race conditions and undefined system behaviour. For example, #errno is no longer a thread-local variable if this option is enabled. Definition at line 2470 of file appl-config.h.
#define CONFIGURE_EXECUTIVE_RAM_SIZE |
This configuration option is an integer define.
The value of this configuration option defines the RTEMS Workspace size in bytes.
<rtems/confdefs.h>
based on the values configuration options.The value of this configuration option shall satisfy all of the following constraints:
Definition at line 2504 of file appl-config.h.
#define CONFIGURE_EXTRA_TASK_STACKS |
This configuration option is an integer define.
The value of this configuration option defines the number of bytes the applications wishes to add to the task stack requirements calculated by <rtems/confdefs.h>
.
The value of this configuration option shall satisfy all of the following constraints:
<rtems/confdefs.h>
does not overflow an integer of type uintptr_t. <rtems/confdefs.h>
. Definition at line 2535 of file appl-config.h.
#define CONFIGURE_INITIAL_EXTENSIONS |
This configuration option is an initializer define.
The value of this configuration option is used to initialize the table of initial user extensions.
Definition at line 2557 of file appl-config.h.
#define CONFIGURE_INTERRUPT_STACK_SIZE |
This configuration option is an integer define.
The value of this configuration option defines the size of an interrupt stack in bytes.
The value of this configuration option shall satisfy all of the following constraints:
<rtems/confdefs.h>
does not overflow an integer of type size_t.There is one interrupt stack available for each configured processor (CONFIGURE_MAXIMUM_PROCESSORS). The interrupt stack areas are statically allocated in a special linker section (.rtemsstack.interrupt
). The placement of this linker section is BSP-specific.
Some BSPs use the interrupt stack as the initialization stack which is used to perform the sequential system initialization before the multithreading is started.
The interrupt stacks are covered by the stack checker, see CONFIGURE_STACK_CHECKER_ENABLED. However, using a too small interrupt stack size may still result in undefined behaviour.
In releases before RTEMS 5.1 the default value was CONFIGURE_MINIMUM_TASK_STACK_SIZE instead of CPU_STACK_MINIMUM_SIZE.
Definition at line 2605 of file appl-config.h.
#define CONFIGURE_MALLOC_DIRTY |
This configuration option is a boolean feature define.
In case this configuration option is defined, then each memory area returned by C Program Heap allocator functions such as malloc() is dirtied with a 0xCF
byte pattern before it is handed over to the application.
Definition at line 2626 of file appl-config.h.
#define CONFIGURE_MAXIMUM_FILE_DESCRIPTORS |
This configuration option is an integer define.
The value of this configuration option defines the maximum number of file like objects that can be concurrently open.
The value of this configuration option shall satisfy all of the following constraints:
/dev/console
. Definition at line 2658 of file appl-config.h.
#define CONFIGURE_MAXIMUM_PROCESSORS |
This configuration option is an integer define.
The value of this configuration option defines the maximum number of processors an application intends to use. The number of actually available processors depends on the hardware and may be less. It is recommended to use the smallest value suitable for the application in order to save memory. Each processor needs an IDLE task stack and interrupt stack for example.
If there are more processors available than configured, the rest will be ignored.
This configuration option is only evaluated in SMP configurations (e.g. RTEMS was built with the --enable-smp
build configuration option). In all other configurations it has no effect.
Definition at line 2688 of file appl-config.h.
#define CONFIGURE_MAXIMUM_THREAD_NAME_SIZE |
This configuration option is an integer define.
The value of this configuration option defines the maximum thread name size including the terminating NUL
character.
The value of this configuration option shall satisfy all of the following constraints:
The default value was chosen for Linux compatibility, see PTHREAD_SETNAME_NP(3).
The size of the thread control block is increased by the maximum thread name size.
This configuration option is available since RTEMS 5.1.
Definition at line 2727 of file appl-config.h.
#define CONFIGURE_MEMORY_OVERHEAD |
This configuration option is an integer define.
The value of this configuration option defines the number of kilobytes the application wishes to add to the RTEMS Workspace size calculated by <rtems/confdefs.h>
.
The value of this configuration option shall satisfy all of the following constraints:
<rtems/confdefs.h>
does not overflow an integer of type uintptr_t. <rtems/confdefs.h>
has resulted in an underestimation. Typically the memory allocation will be too low when an application does not account for all message queue buffers or task stacks, see CONFIGURE_MESSAGE_BUFFER_MEMORY. Definition at line 2764 of file appl-config.h.
#define CONFIGURE_MESSAGE_BUFFER_MEMORY |
This configuration option is an integer define.
The value of this configuration option defines the number of bytes reserved for message queue buffers in the RTEMS Workspace.
The value of this configuration option shall satisfy all of the following constraints:
<rtems/confdefs.h>
does not overflow an integer of type uintptr_t. The configuration options CONFIGURE_MAXIMUM_MESSAGE_QUEUES and CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES define only how many message queues can be created by the application. The memory for the message buffers is configured by this option. For each message queue you have to reserve some memory for the message buffers. The size depends on the maximum number of pending messages and the maximum size of the messages of a message queue. Use the CONFIGURE_MESSAGE_BUFFERS_FOR_QUEUE()
macro to specify the message buffer memory for each message queue and sum them up to define the value for CONFIGURE_MAXIMUM_MESSAGE_QUEUES
.
The interface for the CONFIGURE_MESSAGE_BUFFERS_FOR_QUEUE()
help macro is as follows:
Where max_messages
is the maximum number of pending messages and max_msg_size
is the maximum size in bytes of the messages of the corresponding message queue. Both parameters shall be compile time constants. Not using this help macro (e.g. just using max_messages * max_msg_size
) may result in an underestimate of the RTEMS Workspace size.
The following example illustrates how the CONFIGURE_MESSAGE_BUFFERS_FOR_QUEUE()
help macro can be used to assist in calculating the message buffer memory required. In this example, there are two message queues used in this application. The first message queue has a maximum of 24 pending messages with the message structure defined by the type one_message_type
. The other message queue has a maximum of 500 pending messages with the message structure defined by the type other_message_type
.
Definition at line 2841 of file appl-config.h.
#define CONFIGURE_MICROSECONDS_PER_TICK |
This configuration option is an integer define.
The value of this configuration option defines the length of time in microseconds between clock ticks (clock tick quantum).
When the clock tick quantum value is too low, the system will spend so much time processing clock ticks that it does not have processing time available to perform application work. In this case, the system will become unresponsive.
The lowest practical time quantum varies widely based upon the speed of the target hardware and the architectural overhead associated with interrupts. In general terms, you do not want to configure it lower than is needed for the application.
The clock tick quantum should be selected such that it all blocking and delay times in the application are evenly divisible by it. Otherwise, rounding errors will be introduced which may negatively impact the application.
The value of this configuration option shall satisfy all of the following constraints:
This configuration option has no impact if the Clock Driver is not configured, see CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER.
There may be Clock Driver specific limits on the resolution or maximum value of a clock tick quantum.
Definition at line 2890 of file appl-config.h.
#define CONFIGURE_MINIMUM_TASK_STACK_SIZE |
This configuration option is an integer define.
The value of this configuration option defines the minimum stack size in bytes for every user task or thread in the system.
The value of this configuration option shall satisfy all of the following constraints:
<rtems/confdefs.h>
does not overflow an integer of type uintptr_t.Adjusting this parameter should be done with caution. Examining the actual stack usage using the stack checker usage reporting facility is recommended (see also CONFIGURE_STACK_CHECKER_ENABLED).
This parameter can be used to lower the minimum from that recommended. This can be used in low memory systems to reduce memory consumption for stacks. However, this shall be done with caution as it could increase the possibility of a blown task stack.
This parameter can be used to increase the minimum from that recommended. This can be used in higher memory systems to reduce the risk of stack overflow without performing analysis on actual consumption.
By default, this configuration parameter defines also the minimum stack size of POSIX threads. This can be changed with the CONFIGURE_MINIMUM_POSIX_THREAD_STACK_SIZE configuration option.
In releases before RTEMS 5.1 the CONFIGURE_MINIMUM_TASK_STACK_SIZE
was used to define the default value of CONFIGURE_INTERRUPT_STACK_SIZE.
Definition at line 2939 of file appl-config.h.
#define CONFIGURE_STACK_CHECKER_ENABLED |
This configuration option is a boolean feature define.
In case this configuration option is defined, then the stack checker is enabled.
The stack checker performs run-time stack bounds checking. This increases the time required to create tasks as well as adding overhead to each context switch.
In 4.9 and older, this configuration option was named STACK_CHECKER_ON
.
Definition at line 2962 of file appl-config.h.
#define CONFIGURE_TICKS_PER_TIMESLICE |
This configuration option is an integer define.
The value of this configuration option defines the length of the timeslice quantum in ticks for each task.
Definition at line 2984 of file appl-config.h.
#define CONFIGURE_UNIFIED_WORK_AREAS |
This configuration option is a boolean feature define.
In case this configuration option is defined, then the RTEMS Workspace and the C Program Heap will be one pool of memory.
Having separate pools does have some advantages in the event a task blows a stack or writes outside its memory area. However, in low memory systems the overhead of the two pools plus the potential for unused memory in either pool is very undesirable.
In high memory environments, this is desirable when you want to use the Unlimited Objects option. You will be able to create objects until you run out of all available memory rather then just until you run out of RTEMS Workspace.
Definition at line 3011 of file appl-config.h.
#define CONFIGURE_UNLIMITED_ALLOCATION_SIZE |
This configuration option is an integer define.
If CONFIGURE_UNLIMITED_OBJECTS is defined, then the value of this configuration option defines the default objects maximum of all object classes supporting Unlimited Objects to rtems_resource_unlimited( CONFIGURE_UNLIMITED_ALLOCATION_SIZE )
.
By allowing users to declare all resources as being unlimited the user can avoid identifying and limiting the resources used.
The object maximum of each class can be configured also individually using the rtems_resource_unlimited() macro.
Definition at line 3041 of file appl-config.h.
#define CONFIGURE_UNLIMITED_OBJECTS |
This configuration option is a boolean feature define.
In case this configuration option is defined, then unlimited objects are used by default.
When using unlimited objects, it is common practice to also specify CONFIGURE_UNIFIED_WORK_AREAS so the system operates with a single pool of memory for both RTEMS Workspace and C Program Heap.
This option does not override an explicit configuration for a particular object class by the user.
See also CONFIGURE_UNLIMITED_ALLOCATION_SIZE.
Definition at line 3067 of file appl-config.h.
#define CONFIGURE_VERBOSE_SYSTEM_INITIALIZATION |
This configuration option is a boolean feature define.
In case this configuration option is defined, then the system initialization is verbose.
Definition at line 3085 of file appl-config.h.
#define CONFIGURE_ZERO_WORKSPACE_AUTOMATICALLY |
This configuration option is a boolean feature define.
In case this configuration option is defined, then the memory areas used for the RTEMS Workspace and the C Program Heap are zeroed with a 0x00
byte pattern during system initialization.
Definition at line 3106 of file appl-config.h.