diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-02-26 11:08:31 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-02-28 09:06:16 +0100 |
commit | e1d7bf002efda1f6319bd8aa64ad1c9712103d54 (patch) | |
tree | 2bc5f9f3c1a2cda166b209a54cd493fd4ed47ee2 /cpukit | |
parent | rtems: Use size_t for cache line size (diff) | |
download | rtems-e1d7bf002efda1f6319bd8aa64ad1c9712103d54.tar.bz2 |
rtems: Add cache size functions
Add rtems_cache_get_data_cache_size() and
rtems_cache_get_instruction_cache_size().
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/rtems/include/rtems/rtems/cache.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/cpukit/rtems/include/rtems/rtems/cache.h b/cpukit/rtems/include/rtems/rtems/cache.h index 2faf620e24..8da143f8eb 100644 --- a/cpukit/rtems/include/rtems/rtems/cache.h +++ b/cpukit/rtems/include/rtems/rtems/cache.h @@ -61,6 +61,26 @@ size_t rtems_cache_get_data_line_size( void ); size_t rtems_cache_get_instruction_line_size( void ); /** + * @brief Returns the data cache size in bytes. + * + * @param[in] level The cache level of interest. The cache level zero + * specifies the entire data cache. + * + * @returns The data cache size in bytes of the specified level. + */ +size_t rtems_cache_get_data_cache_size( uint32_t level ); + +/** + * @brief Returns the instruction cache size in bytes. + * + * @param[in] level The cache level of interest. The cache level zero + * specifies the entire instruction cache. + * + * @returns The instruction cache size in bytes of the specified level. + */ +size_t rtems_cache_get_instruction_cache_size( uint32_t level ); + +/** * @brief Flushes multiple data cache lines. * * Dirty cache lines covering the area are transfered to memory. Depending on |