cache_handlers.c 890 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Copyright (c) 2020 Intel Corporation
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #include <cache.h>
  7. #include <syscall_handler.h>
  8. static inline int z_vrfy_sys_cache_data_all(int op)
  9. {
  10. return z_impl_sys_cache_data_all(op);
  11. }
  12. #include <syscalls/sys_cache_data_all_mrsh.c>
  13. static inline int z_vrfy_sys_cache_data_range(void *addr, size_t size, int op)
  14. {
  15. Z_OOPS(Z_SYSCALL_MEMORY_WRITE(addr, size));
  16. return z_impl_sys_cache_data_range(addr, size, op);
  17. }
  18. #include <syscalls/sys_cache_data_range_mrsh.c>
  19. static inline int z_vrfy_sys_cache_instr_all(int op)
  20. {
  21. return z_impl_sys_cache_instr_all(op);
  22. }
  23. #include <syscalls/sys_cache_instr_all_mrsh.c>
  24. static inline int z_vrfy_sys_cache_instr_range(void *addr, size_t size, int op)
  25. {
  26. Z_OOPS(Z_SYSCALL_MEMORY_WRITE(addr, size));
  27. return z_impl_sys_cache_instr_range(addr, size, op);
  28. }
  29. #include <syscalls/sys_cache_instr_range_mrsh.c>