Skip to content
Snippets Groups Projects
Commit e7e0469c authored by Marek Vasut's avatar Marek Vasut Committed by Daniel Schwierzeck
Browse files

mips: Let cache.h be included from assembly source


Add ifdef __ASSEMBLY__ around the function prototype to let cache.h
be included from assembly code.

Signed-off-by: default avatarMarek Vasut <marex@denx.de>
Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Cc: Paul Burton <paul.burton@imgtec.com>
parent 4c2cb115
No related branches found
No related tags found
No related merge requests found
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
*/ */
#define CONFIG_SYS_CACHELINE_SIZE ARCH_DMA_MINALIGN #define CONFIG_SYS_CACHELINE_SIZE ARCH_DMA_MINALIGN
#ifndef __ASSEMBLY__
/** /**
* mips_cache_probe() - Probe the properties of the caches * mips_cache_probe() - Probe the properties of the caches
* *
...@@ -27,5 +28,6 @@ ...@@ -27,5 +28,6 @@
* functions such as flush_cache may be called. * functions such as flush_cache may be called.
*/ */
void mips_cache_probe(void); void mips_cache_probe(void);
#endif
#endif /* __MIPS_CACHE_H__ */ #endif /* __MIPS_CACHE_H__ */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment