cavs: remove unused and dangerous definitions
uncache_to_cache(), cache_to_uncache() and is_uncached() macros are currently unused in Zephyr, besides the former two are dangerous because they add and subtract an offset instead of masking and unmasking a bit, which can lead to wrong addresses if applied repeatedly. Remove these macros for now, we can re-add them later if needed in their fixed versions. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
parent
d7a3752915
commit
e027a54440
4 changed files with 0 additions and 32 deletions
|
@ -140,14 +140,6 @@
|
||||||
#define SRAM_ALIAS_MASK 0xFF000000
|
#define SRAM_ALIAS_MASK 0xFF000000
|
||||||
#define SRAM_ALIAS_OFFSET 0x20000000
|
#define SRAM_ALIAS_OFFSET 0x20000000
|
||||||
|
|
||||||
|
|
||||||
#define uncache_to_cache(address) \
|
|
||||||
((__typeof__(address))((uint32_t)(address) + SRAM_ALIAS_OFFSET))
|
|
||||||
#define cache_to_uncache(address) \
|
|
||||||
((__typeof__(address))((uint32_t)(address) - SRAM_ALIAS_OFFSET))
|
|
||||||
#define is_uncached(address) \
|
|
||||||
(((uint32_t)(address) & SRAM_ALIAS_MASK) == SRAM_ALIAS_BASE)
|
|
||||||
|
|
||||||
/* shim */
|
/* shim */
|
||||||
#define SHIM_BASE 0x00001000
|
#define SHIM_BASE 0x00001000
|
||||||
#define SHIM_SIZE 0x00000100
|
#define SHIM_SIZE 0x00000100
|
||||||
|
|
|
@ -137,14 +137,6 @@
|
||||||
#define SRAM_ALIAS_MASK 0xFF000000
|
#define SRAM_ALIAS_MASK 0xFF000000
|
||||||
#define SRAM_ALIAS_OFFSET 0x20000000
|
#define SRAM_ALIAS_OFFSET 0x20000000
|
||||||
|
|
||||||
|
|
||||||
#define uncache_to_cache(address) \
|
|
||||||
((__typeof__(address))((uint32_t)(address) + SRAM_ALIAS_OFFSET))
|
|
||||||
#define cache_to_uncache(address) \
|
|
||||||
((__typeof__(address))((uint32_t)(address) - SRAM_ALIAS_OFFSET))
|
|
||||||
#define is_uncached(address) \
|
|
||||||
(((uint32_t)(address) & SRAM_ALIAS_MASK) == SRAM_ALIAS_BASE)
|
|
||||||
|
|
||||||
/* shim */
|
/* shim */
|
||||||
#define SHIM_BASE 0x00071F00
|
#define SHIM_BASE 0x00071F00
|
||||||
#define SHIM_SIZE 0x00000100
|
#define SHIM_SIZE 0x00000100
|
||||||
|
|
|
@ -137,14 +137,6 @@
|
||||||
#define SRAM_ALIAS_MASK 0xFF000000
|
#define SRAM_ALIAS_MASK 0xFF000000
|
||||||
#define SRAM_ALIAS_OFFSET 0x20000000
|
#define SRAM_ALIAS_OFFSET 0x20000000
|
||||||
|
|
||||||
|
|
||||||
#define uncache_to_cache(address) \
|
|
||||||
((__typeof__(address))((uint32_t)(address) + SRAM_ALIAS_OFFSET))
|
|
||||||
#define cache_to_uncache(address) \
|
|
||||||
((__typeof__(address))((uint32_t)(address) - SRAM_ALIAS_OFFSET))
|
|
||||||
#define is_uncached(address) \
|
|
||||||
(((uint32_t)(address) & SRAM_ALIAS_MASK) == SRAM_ALIAS_BASE)
|
|
||||||
|
|
||||||
/* shim */
|
/* shim */
|
||||||
#define SHIM_BASE 0x00071F00
|
#define SHIM_BASE 0x00071F00
|
||||||
#define SHIM_SIZE 0x00000100
|
#define SHIM_SIZE 0x00000100
|
||||||
|
|
|
@ -139,14 +139,6 @@
|
||||||
#define SRAM_ALIAS_MASK 0xFF000000
|
#define SRAM_ALIAS_MASK 0xFF000000
|
||||||
#define SRAM_ALIAS_OFFSET 0x20000000
|
#define SRAM_ALIAS_OFFSET 0x20000000
|
||||||
|
|
||||||
|
|
||||||
#define uncache_to_cache(address) \
|
|
||||||
((__typeof__(address))((uint32_t)(address) + SRAM_ALIAS_OFFSET))
|
|
||||||
#define cache_to_uncache(address) \
|
|
||||||
((__typeof__(address))((uint32_t)(address) - SRAM_ALIAS_OFFSET))
|
|
||||||
#define is_uncached(address) \
|
|
||||||
(((uint32_t)(address) & SRAM_ALIAS_MASK) == SRAM_ALIAS_BASE)
|
|
||||||
|
|
||||||
/* shim */
|
/* shim */
|
||||||
#define SHIM_BASE 0x00071F00
|
#define SHIM_BASE 0x00071F00
|
||||||
#define SHIM_SIZE 0x00000100
|
#define SHIM_SIZE 0x00000100
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue