zephyr/kernel/cache_handlers.c
Aastha Grover 2d9b459f15 syscalls: Add system call for cache flush & invalidate
include/cache.h: System calls declaration and implementation
kernel/cache_handlers.c: Defination of verification functions

Signed-off-by: Aastha Grover <aastha.grover@intel.com>
2020-08-04 17:26:45 -04:00

23 lines
529 B
C

/*
* Copyright (c) 2020 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <cache.h>
#include <syscall_handler.h>
static inline void z_vrfy_sys_cache_flush(void *addr, size_t size)
{
Z_OOPS(Z_SYSCALL_MEMORY_WRITE(addr, size));
z_impl_sys_cache_flush(addr, size);
}
#include <syscalls/sys_cache_flush_mrsh.c>
static inline void z_vrfy_sys_cache_invd(void *addr, size_t size)
{
Z_OOPS(Z_SYSCALL_MEMORY_WRITE(addr, size));
z_impl_sys_cache_invd(addr, size);
}
#include <syscalls/sys_cache_invd_mrsh.c>