mirror of
https://github.com/espressif/esp-idf.git
synced 2024-09-20 00:36:01 -04:00
fix(hal): integer overflow warning in the cache LL macro
This commit is contained in:
parent
166fa7acac
commit
433825d385
@ -23,13 +23,13 @@ extern "C" {
|
||||
* @brief Given a L2MEM cached address, get the corresponding non-cacheable address
|
||||
* @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
|
||||
* @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
|
||||
|
Loading…
Reference in New Issue
Block a user