RTEMS CPU Kit with SuperCore
4.11.3
|
This module contains items which are used internally to ease the configuration calculations. More...
![]() |
Macros | |
#define | _Configure_Zero_or_One(_number) ((_number) ? 1 : 0) |
Zero of one returns 0 if the parameter is 0 else 1 is returned. | |
#define | _Configure_Align_up(_val, _align) (((_val) + (_align) - 1) & ~((_align) - 1)) |
General helper to aligned a value up to a power of two boundary. | |
#define | _Configure_From_workspace(_size) |
This is a helper macro used in calculations in this file. More... | |
#define | _Configure_From_stackspace(_stack_size) _Configure_From_workspace(_stack_size) |
This is a helper macro used in stack space calculations in this file. More... | |
#define | _Configure_Max_Objects(_max) (_Configure_Zero_or_One(_max) * rtems_resource_maximum_per_allocation(_max)) |
Do not use the unlimited bit as part of the multiplication for memory usage. | |
#define | _Configure_Object_RAM(_number, _size) |
This macro accounts for how memory for a set of configured objects is allocated from the Executive Workspace. More... | |
This module contains items which are used internally to ease the configuration calculations.
#define _Configure_From_stackspace | ( | _stack_size | ) | _Configure_From_workspace(_stack_size) |
This is a helper macro used in stack space calculations in this file.
It may be provided by the application in case a special task stack allocator is used. The default is allocation from the RTEMS Workspace.
#define _Configure_From_workspace | ( | _size | ) |
This is a helper macro used in calculations in this file.
It is used to noted when an element is allocated from the RTEMS Workspace and adds a factor to account for heap overhead plus an alignment factor that may be applied.
#define _Configure_Object_RAM | ( | _number, | |
_size | |||
) |
This macro accounts for how memory for a set of configured objects is allocated from the Executive Workspace.
NOTE: It does NOT attempt to address the more complex case of unlimited objects.