2020-07-16 12:32:24 -07:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2020 Intel Corporation
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <cache.h>
|
|
|
|
#include <syscall_handler.h>
|
|
|
|
|
2021-05-04 16:26:10 +02:00
|
|
|
static inline int z_vrfy_sys_cache_data_all(int op)
|
2020-12-02 12:38:58 +01:00
|
|
|
{
|
2021-05-04 16:26:10 +02:00
|
|
|
return z_impl_sys_cache_data_all(op);
|
2020-12-02 12:38:58 +01:00
|
|
|
}
|
2021-05-04 16:26:10 +02:00
|
|
|
#include <syscalls/sys_cache_data_all_mrsh.c>
|
2020-12-02 12:38:58 +01:00
|
|
|
|
2021-05-04 16:26:10 +02:00
|
|
|
static inline int z_vrfy_sys_cache_data_range(void *addr, size_t size, int op)
|
2020-07-16 12:32:24 -07:00
|
|
|
{
|
|
|
|
Z_OOPS(Z_SYSCALL_MEMORY_WRITE(addr, size));
|
2020-12-02 12:38:58 +01:00
|
|
|
|
2021-05-04 16:26:10 +02:00
|
|
|
return z_impl_sys_cache_data_range(addr, size, op);
|
2020-07-16 12:32:24 -07:00
|
|
|
}
|
2021-05-04 16:26:10 +02:00
|
|
|
#include <syscalls/sys_cache_data_range_mrsh.c>
|
2020-07-16 12:32:24 -07:00
|
|
|
|
2021-05-04 16:26:10 +02:00
|
|
|
static inline int z_vrfy_sys_cache_instr_all(int op)
|
2020-12-02 12:38:58 +01:00
|
|
|
{
|
2021-05-04 16:26:10 +02:00
|
|
|
return z_impl_sys_cache_instr_all(op);
|
2020-12-02 12:38:58 +01:00
|
|
|
}
|
2021-05-04 16:26:10 +02:00
|
|
|
#include <syscalls/sys_cache_instr_all_mrsh.c>
|
2020-12-02 12:38:58 +01:00
|
|
|
|
2021-05-04 16:26:10 +02:00
|
|
|
static inline int z_vrfy_sys_cache_instr_range(void *addr, size_t size, int op)
|
2020-07-16 12:32:24 -07:00
|
|
|
{
|
|
|
|
Z_OOPS(Z_SYSCALL_MEMORY_WRITE(addr, size));
|
2020-12-02 12:38:58 +01:00
|
|
|
|
2021-05-04 16:26:10 +02:00
|
|
|
return z_impl_sys_cache_instr_range(addr, size, op);
|
2020-07-16 12:32:24 -07:00
|
|
|
}
|
2021-05-04 16:26:10 +02:00
|
|
|
#include <syscalls/sys_cache_instr_range_mrsh.c>
|