forked from espressif/esp-idf
fix(hal): integer overflow warning in the cache LL macro
This commit is contained in:
@@ -23,13 +23,13 @@ extern "C" {
|
|||||||
* @brief Given a L2MEM cached address, get the corresponding non-cacheable address
|
* @brief Given a L2MEM cached address, get the corresponding non-cacheable address
|
||||||
* @example 0x4FF0_0000 => 0x8FF0_0000
|
* @example 0x4FF0_0000 => 0x8FF0_0000
|
||||||
*/
|
*/
|
||||||
#define CACHE_LL_L2MEM_NON_CACHE_ADDR(addr) ((intptr_t)(addr) + SOC_NON_CACHEABLE_OFFSET)
|
#define CACHE_LL_L2MEM_NON_CACHE_ADDR(addr) ((uintptr_t)(addr) + SOC_NON_CACHEABLE_OFFSET)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Given a non-cacheable address, get the corresponding L2MEM cached address
|
* @brief Given a non-cacheable address, get the corresponding L2MEM cached address
|
||||||
* @example 0x8FF0_0000 => 0x4FF0_0000
|
* @example 0x8FF0_0000 => 0x4FF0_0000
|
||||||
*/
|
*/
|
||||||
#define CACHE_LL_L2MEM_CACHE_ADDR(non_cache_addr) ((intptr_t)(non_cache_addr) - SOC_NON_CACHEABLE_OFFSET)
|
#define CACHE_LL_L2MEM_CACHE_ADDR(non_cache_addr) ((uintptr_t)(non_cache_addr) - SOC_NON_CACHEABLE_OFFSET)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cache capabilities
|
* Cache capabilities
|
||||||
|
Reference in New Issue
Block a user