summaryrefslogtreecommitdiff
path: root/payloads/libpayload/include
diff options
context:
space:
mode:
Diffstat (limited to 'payloads/libpayload/include')
-rw-r--r--payloads/libpayload/include/mock/arch/cache.h23
1 files changed, 13 insertions, 10 deletions
diff --git a/payloads/libpayload/include/mock/arch/cache.h b/payloads/libpayload/include/mock/arch/cache.h
index 1e71d5e0e2..0e4bc033d0 100644
--- a/payloads/libpayload/include/mock/arch/cache.h
+++ b/payloads/libpayload/include/mock/arch/cache.h
@@ -3,16 +3,19 @@
#ifndef __ARCH_CACHE_H__
#define __ARCH_CACHE_H__
-/* No support for cache in the mock architecture */
+#include <stddef.h>
-#define dmb()
-#define dsb()
-#define dcache_clean_all()
-#define dcache_clean_by_mva(addr, len)
-#define dcache_invalidate_all()
-#define dcache_invalidate_by_mva(addr, len)
-#define dcache_clean_invalidate_all()
-#define dcache_clean_invalidate_by_mva(addr, len)
-#define cache_sync_instructions()
+/* Functions in this file are unimplemented by default. Tests are expected to implement
+ mocks for these functions, if tests will call functions using functions listed below. */
+
+void dmb(void);
+void dsb(void);
+void dcache_clean_all(void);
+void dcache_clean_by_mva(void const *addr, size_t len);
+void dcache_invalidate_all(void);
+void dcache_invalidate_by_mva(void const *addr, size_t len);
+void dcache_clean_invalidate_all(void);
+void dcache_clean_invalidate_by_mva(void const *addr, size_t len);
+void cache_sync_instructions(void);
#endif /* __ARCH_CACHE_H__ */