drivers: uart: Add config_get verification handler
uart_config_get API was broken in USERSPACE because was lacking the verification handler. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
5bd906463d
commit
017c142fd2
1 changed files with 10 additions and 0 deletions
|
@ -41,6 +41,16 @@ static inline void z_vrfy_uart_poll_out(struct device *dev,
|
|||
}
|
||||
#include <syscalls/uart_poll_out_mrsh.c>
|
||||
|
||||
static inline int z_vrfy_uart_config_get(struct device *dev,
|
||||
struct uart_config *cfg)
|
||||
{
|
||||
Z_OOPS(Z_SYSCALL_DRIVER_UART(dev, config_get));
|
||||
Z_OOPS(Z_SYSCALL_MEMORY_WRITE(cfg, sizeof(struct uart_config)));
|
||||
|
||||
return z_impl_uart_config_get(dev, cfg);
|
||||
}
|
||||
#include <syscalls/uart_config_get_mrsh.c>
|
||||
|
||||
#ifdef CONFIG_UART_ASYNC_API
|
||||
/* callback_set() excluded as we don't allow ISR callback installation from
|
||||
* user mode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue