diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-12-13 06:25:03 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-02-04 05:52:28 +0100 |
commit | c477d927e8578adfb35a77ff39542b96da7c2a37 (patch) | |
tree | 9bf4a842b83b9a56defe50ab8457eaeff1c1e0ae /cpukit/include/rtems/score/memory.h | |
parent | score: Add Memory Handler (diff) | |
download | rtems-c477d927e8578adfb35a77ff39542b96da7c2a37.tar.bz2 |
score: Add _Memory_Fill()
Update #3838.
Diffstat (limited to 'cpukit/include/rtems/score/memory.h')
-rw-r--r-- | cpukit/include/rtems/score/memory.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/cpukit/include/rtems/score/memory.h b/cpukit/include/rtems/score/memory.h index e4d1198862..f26c7f4031 100644 --- a/cpukit/include/rtems/score/memory.h +++ b/cpukit/include/rtems/score/memory.h @@ -306,7 +306,7 @@ const Memory_Information *_Memory_Get( void ); /** * @brief Allocate a memory area from the memory information. * - * It is not possible to free the memory allocated by this function. + * It is not possible to free the memory area allocated by this function. * * @param information The memory information. * @param size The size in bytes of the memory area to allocate. @@ -322,6 +322,15 @@ void *_Memory_Allocate( uintptr_t alignment ); +/** + * @brief Fill all free memory areas of the memory information with a constant + * byte. + * + * @param information The memory information. + * @param c The constant byte to fill the free memory areas. + */ +void _Memory_Fill( const Memory_Information *information, int c ); + /** @} */ #ifdef __cplusplus |