mirror of https://github.com/thesofproject/sof.git
memory: remove uncache macros from several platforms
Removes uncache macros from platforms, which don't support uncached memory region. Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
This commit is contained in:
parent
9e4d1aae90
commit
e025338813
|
@ -193,10 +193,6 @@ static inline void *platform_rfree_prepare(void *ptr)
|
||||||
|
|
||||||
#define SOF_MEM_RO_SIZE 0x8
|
#define SOF_MEM_RO_SIZE 0x8
|
||||||
|
|
||||||
#define uncache_to_cache(address) address
|
|
||||||
#define cache_to_uncache(address) address
|
|
||||||
#define is_uncached(address) 0
|
|
||||||
|
|
||||||
#endif /* __PLATFORM_LIB_MEMORY_H__ */
|
#endif /* __PLATFORM_LIB_MEMORY_H__ */
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -187,10 +187,6 @@ static inline void *platform_rfree_prepare(void *ptr)
|
||||||
|
|
||||||
#define SOF_MEM_RO_SIZE 0x8
|
#define SOF_MEM_RO_SIZE 0x8
|
||||||
|
|
||||||
#define uncache_to_cache(address) address
|
|
||||||
#define cache_to_uncache(address) address
|
|
||||||
#define is_uncached(address) 0
|
|
||||||
|
|
||||||
#endif /* __PLATFORM_LIB_MEMORY_H__ */
|
#endif /* __PLATFORM_LIB_MEMORY_H__ */
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -165,10 +165,6 @@
|
||||||
|
|
||||||
#define SOF_MEM_RO_SIZE 0x8
|
#define SOF_MEM_RO_SIZE 0x8
|
||||||
|
|
||||||
#define uncache_to_cache(address) address
|
|
||||||
#define cache_to_uncache(address) address
|
|
||||||
#define is_uncached(address) 0
|
|
||||||
|
|
||||||
#define HEAP_BUF_ALIGNMENT PLATFORM_DCACHE_ALIGN
|
#define HEAP_BUF_ALIGNMENT PLATFORM_DCACHE_ALIGN
|
||||||
|
|
||||||
#if !defined(__ASSEMBLER__) && !defined(LINKER)
|
#if !defined(__ASSEMBLER__) && !defined(LINKER)
|
||||||
|
|
|
@ -162,10 +162,6 @@
|
||||||
|
|
||||||
#define SOF_MEM_RO_SIZE 0x8
|
#define SOF_MEM_RO_SIZE 0x8
|
||||||
|
|
||||||
#define uncache_to_cache(address) address
|
|
||||||
#define cache_to_uncache(address) address
|
|
||||||
#define is_uncached(address) 0
|
|
||||||
|
|
||||||
#define HEAP_BUF_ALIGNMENT PLATFORM_DCACHE_ALIGN
|
#define HEAP_BUF_ALIGNMENT PLATFORM_DCACHE_ALIGN
|
||||||
|
|
||||||
#if !defined(__ASSEMBLER__) && !defined(LINKER)
|
#if !defined(__ASSEMBLER__) && !defined(LINKER)
|
||||||
|
|
|
@ -29,10 +29,6 @@
|
||||||
|
|
||||||
#define SHARED_DATA
|
#define SHARED_DATA
|
||||||
|
|
||||||
#define uncache_to_cache(address) (address)
|
|
||||||
#define cache_to_uncache(address) (address)
|
|
||||||
#define is_uncached(address) 0
|
|
||||||
|
|
||||||
static inline void *platform_shared_get(void *ptr, int bytes)
|
static inline void *platform_shared_get(void *ptr, int bytes)
|
||||||
{
|
{
|
||||||
return ptr;
|
return ptr;
|
||||||
|
|
Loading…
Reference in New Issue