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:
parent
9928023421
commit
cbf7c0e47a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue