syscalls: implicit cast for _SYSCALL_MEMORY

Everything get passed to handlers as u32_t, make it simpler to check
something that is known to be a pointer, like we already do with
_SYSCALL_IS_OBJ().

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2017-09-29 02:55:50 -07:00 committed by Andrew Boie
commit cbf7c0e47a

View file

@ -51,7 +51,7 @@ extern const _k_syscall_handler_t _k_syscall_table[K_SYSCALL_LIMIT];
* @param ssf Syscall stack frame argument passed to the handler function
*/
#define _SYSCALL_MEMORY(ptr, size, write, ssf) \
_SYSCALL_VERIFY(!_arch_buffer_validate(ptr, size, write), ssf)
_SYSCALL_VERIFY(!_arch_buffer_validate((void *)ptr, size, write), ssf)
/**
* @brief Runtime check that a pointer is a kernel object of expected type