This group contains the Memory Handler implementation.
More...
|
const Memory_Information * | _Memory_Get (void) |
| Return the memory information of this platform.
|
|
void * | _Memory_Allocate (const Memory_Information *information, uintptr_t size, uintptr_t alignment) |
| Allocate a memory area from the memory information.
|
|
void | _Memory_Fill (const Memory_Information *information, int c) |
| Fill all free memory areas of the memory information with a constant byte.
|
|
void | _Memory_Zero_free_areas (void) |
| Zeros all free memory areas of the system.
|
|
void | _Memory_Dirty_free_areas (void) |
| Dirty all free memory areas of the system.
|
|
|
const bool | _Memory_Zero_before_use |
| Indicates if the memory is zeroed during system initialization.
|
|
char | _Memory_Noinit_begin [] |
| This symbol marks the begin of the non-initialized section used by RTEMS.
|
|
char | _Memory_Noinit_end [] |
| This symbol marks the end of the non-initialized section used by RTEMS.
|
|
This group contains the Memory Handler implementation.
The Memory Handler provides memory areas supplied by the BSP to higher level memory consumers such as the Workspace Handler and the Malloc Support.
◆ MEMORY_INFORMATION_INITIALIZER
#define MEMORY_INFORMATION_INITIALIZER |
( |
|
areas | ) |
{ RTEMS_ARRAY_SIZE( areas ), ( areas ) } |
Statically initialize a memory information.
- Parameters
-
areas | The designator of an array of the memory areas. |
◆ MEMORY_INITIALIZER
#define MEMORY_INITIALIZER |
( |
|
begin, |
|
|
|
end |
|
) |
| { ( begin ), ( begin ), ( end ) } |
Statically initialize a memory area.
- Parameters
-
begin | The begin of the memory area. |
end | The end of the memory area. |
◆ _Memory_Allocate()
void * _Memory_Allocate |
( |
const Memory_Information * |
information, |
|
|
uintptr_t |
size, |
|
|
uintptr_t |
alignment |
|
) |
| |
Allocate a memory area from the memory information.
It is not possible to free the memory area allocated by this function.
- Parameters
-
information | The memory information. |
size | The size in bytes of the memory area to allocate. |
alignment | The alignment in bytes of the memory area to allocate. It must be a power of two. |
- Return values
-
NULL | No such memory area available. |
begin | The begin of the allocated memory area. |
◆ _Memory_Fill()
Fill all free memory areas of the memory information with a constant byte.
- Parameters
-
information | The memory information. |
c | The constant byte to fill the free memory areas. |
◆ _Memory_Get()
Return the memory information of this platform.
This function is provided by the Board Support Package (BSP). Using a function gives the BSPs a bit more freedom with respect to the implementation. Calling this function shall not have side-effects. Initialization steps to set up the memory information shall be done in a system initialization handler (RTEMS_SYSINIT_MEMORY).
- Returns
- The memory information.
◆ _Memory_Zero_before_use
const bool _Memory_Zero_before_use |
|
extern |
Indicates if the memory is zeroed during system initialization.
This value is provided via <rtems/confdefs.h> in case CONFIGURE_ZERO_WORKSPACE_AUTOMATICALLY is defined.