1 /*
2 * Copyright (c) 2020 Intel Corporation
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7 #include <zephyr/cache.h>
8 #include <zephyr/internal/syscall_handler.h>
9
z_vrfy_sys_cache_data_flush_range(void * addr,size_t size)10 static inline int z_vrfy_sys_cache_data_flush_range(void *addr, size_t size)
11 {
12 K_OOPS(K_SYSCALL_MEMORY_WRITE(addr, size));
13
14 return z_impl_sys_cache_data_flush_range(addr, size);
15 }
16 #include <zephyr/syscalls/sys_cache_data_flush_range_mrsh.c>
17
z_vrfy_sys_cache_data_invd_range(void * addr,size_t size)18 static inline int z_vrfy_sys_cache_data_invd_range(void *addr, size_t size)
19 {
20 K_OOPS(K_SYSCALL_MEMORY_WRITE(addr, size));
21
22 return z_impl_sys_cache_data_invd_range(addr, size);
23 }
24 #include <zephyr/syscalls/sys_cache_data_invd_range_mrsh.c>
25
z_vrfy_sys_cache_data_flush_and_invd_range(void * addr,size_t size)26 static inline int z_vrfy_sys_cache_data_flush_and_invd_range(void *addr, size_t size)
27 {
28 K_OOPS(K_SYSCALL_MEMORY_WRITE(addr, size));
29
30 return z_impl_sys_cache_data_flush_and_invd_range(addr, size);
31 }
32 #include <zephyr/syscalls/sys_cache_data_flush_and_invd_range_mrsh.c>
33