2020-07-16 21:32:24 +02:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2020 Intel Corporation
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
2022-05-06 11:04:23 +02:00
|
|
|
#include <zephyr/cache.h>
|
2023-09-27 00:46:01 +02:00
|
|
|
#include <zephyr/internal/syscall_handler.h>
|
2020-07-16 21:32:24 +02:00
|
|
|
|
2022-10-05 10:08:29 +02:00
|
|
|
static inline int z_vrfy_sys_cache_data_flush_range(void *addr, size_t size)
|
2020-07-16 21:32:24 +02:00
|
|
|
{
|
2023-09-27 13:20:28 +02:00
|
|
|
K_OOPS(K_SYSCALL_MEMORY_WRITE(addr, size));
|
2020-12-02 12:38:58 +01:00
|
|
|
|
2022-10-05 10:08:29 +02:00
|
|
|
return z_impl_sys_cache_data_flush_range(addr, size);
|
2020-07-16 21:32:24 +02:00
|
|
|
}
|
2022-10-05 10:08:29 +02:00
|
|
|
#include <syscalls/sys_cache_data_flush_range_mrsh.c>
|
2020-07-16 21:32:24 +02:00
|
|
|
|
2022-10-05 10:08:29 +02:00
|
|
|
static inline int z_vrfy_sys_cache_data_invd_range(void *addr, size_t size)
|
2020-12-02 12:38:58 +01:00
|
|
|
{
|
2023-09-27 13:20:28 +02:00
|
|
|
K_OOPS(K_SYSCALL_MEMORY_WRITE(addr, size));
|
2022-10-05 10:08:29 +02:00
|
|
|
|
|
|
|
return z_impl_sys_cache_data_invd_range(addr, size);
|
2020-12-02 12:38:58 +01:00
|
|
|
}
|
2022-10-05 10:08:29 +02:00
|
|
|
#include <syscalls/sys_cache_data_invd_range_mrsh.c>
|
2020-12-02 12:38:58 +01:00
|
|
|
|
2022-10-05 10:08:29 +02:00
|
|
|
static inline int z_vrfy_sys_cache_data_flush_and_invd_range(void *addr, size_t size)
|
2020-07-16 21:32:24 +02:00
|
|
|
{
|
2023-09-27 13:20:28 +02:00
|
|
|
K_OOPS(K_SYSCALL_MEMORY_WRITE(addr, size));
|
2020-12-02 12:38:58 +01:00
|
|
|
|
2022-10-05 10:08:29 +02:00
|
|
|
return z_impl_sys_cache_data_flush_and_invd_range(addr, size);
|
2020-07-16 21:32:24 +02:00
|
|
|
}
|
2022-10-05 10:08:29 +02:00
|
|
|
#include <syscalls/sys_cache_data_flush_and_invd_range_mrsh.c>
|