cache.c 343 B

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