1
0

cache.c 361 B

123456789101112131415161718
  1. #include "syscall.h"
  2. #include "libc.h"
  3. #ifdef SYS_cacheflush
  4. int _flush_cache(void *addr, int len, int op)
  5. {
  6. return syscall(SYS_cacheflush, addr, len, op);
  7. }
  8. weak_alias(_flush_cache, cacheflush);
  9. #endif
  10. #ifdef SYS_cachectl
  11. int __cachectl(void *addr, int len, int op)
  12. {
  13. return syscall(SYS_cachectl, addr, len, op);
  14. }
  15. weak_alias(__cachectl, cachectl);
  16. #endif