mirror of
https://github.com/OpenAMP/open-amp.git
synced 2026-09-24 09:14:38 +08:00
lib: remove CACHE_* macros
- removes CACHE_FLUSH macro clashing with internal QNX definition - also removes CACHE_INVALIDATE macro for consistency Signed-off-by: Deep Chordia <dchordia@blackberry.com>
This commit is contained in:
committed by
Arnaud Pouliquen
parent
6db90ebfcd
commit
b42e8443b9
@@ -29,8 +29,8 @@ extern "C" {
|
||||
#warning "VIRTIO_CACHED_RSC_TABLE is deprecated, please use VIRTIO_USE_DCACHE"
|
||||
#endif
|
||||
#if defined(VIRTIO_CACHED_RSC_TABLE) || defined(VIRTIO_USE_DCACHE)
|
||||
#define RSC_TABLE_FLUSH(x, s) CACHE_FLUSH(x, s)
|
||||
#define RSC_TABLE_INVALIDATE(x, s) CACHE_INVALIDATE(x, s)
|
||||
#define RSC_TABLE_FLUSH(x, s) metal_cache_flush(x, s)
|
||||
#define RSC_TABLE_INVALIDATE(x, s) metal_cache_invalidate(x, s)
|
||||
#else
|
||||
#define RSC_TABLE_FLUSH(x, s) do { } while (0)
|
||||
#define RSC_TABLE_INVALIDATE(x, s) do { } while (0)
|
||||
|
||||
@@ -34,8 +34,8 @@ extern "C" {
|
||||
#warning "VIRTIO_CACHED_BUFFERS is deprecated, please use VIRTIO_USE_DCACHE"
|
||||
#endif
|
||||
#if defined(VIRTIO_CACHED_BUFFERS) || defined(VIRTIO_USE_DCACHE)
|
||||
#define BUFFER_FLUSH(x, s) CACHE_FLUSH(x, s)
|
||||
#define BUFFER_INVALIDATE(x, s) CACHE_INVALIDATE(x, s)
|
||||
#define BUFFER_FLUSH(x, s) metal_cache_flush(x, s)
|
||||
#define BUFFER_INVALIDATE(x, s) metal_cache_invalidate(x, s)
|
||||
#else
|
||||
#define BUFFER_FLUSH(x, s) do { } while (0)
|
||||
#define BUFFER_INVALIDATE(x, s) do { } while (0)
|
||||
|
||||
@@ -48,16 +48,12 @@ extern "C" {
|
||||
/* Support to suppress interrupt until specific index is reached. */
|
||||
#define VIRTIO_RING_F_EVENT_IDX (1 << 29)
|
||||
|
||||
/* cache invalidation helpers */
|
||||
#define CACHE_FLUSH(x, s) metal_cache_flush(x, s)
|
||||
#define CACHE_INVALIDATE(x, s) metal_cache_invalidate(x, s)
|
||||
|
||||
#ifdef VIRTIO_CACHED_VRINGS
|
||||
#warning "VIRTIO_CACHED_VRINGS is deprecated, please use VIRTIO_USE_DCACHE"
|
||||
#endif
|
||||
#if defined(VIRTIO_CACHED_VRINGS) || defined(VIRTIO_USE_DCACHE)
|
||||
#define VRING_FLUSH(x, s) CACHE_FLUSH(x, s)
|
||||
#define VRING_INVALIDATE(x, s) CACHE_INVALIDATE(x, s)
|
||||
#define VRING_FLUSH(x, s) metal_cache_flush(x, s)
|
||||
#define VRING_INVALIDATE(x, s) metal_cache_invalidate(x, s)
|
||||
#else
|
||||
#define VRING_FLUSH(x, s) do { } while (0)
|
||||
#define VRING_INVALIDATE(x, s) do { } while (0)
|
||||
|
||||
Reference in New Issue
Block a user