mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-08 17:19:49 +00:00
A directive to compile the system call handlers for the watchdog subsystem was omitted from CMakeLists.txt, causing the handlers not to be compiled and some issues in the C file undetected. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
33 lines
720 B
C
33 lines
720 B
C
/*
|
|
* Copyright (c) 2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <drivers/watchdog.h>
|
|
#include <syscall_handler.h>
|
|
|
|
static inline int z_vrfy_wdt_setup(struct device *dev, u8_t options)
|
|
{
|
|
Z_OOPS(Z_SYSCALL_DRIVER_WDT(dev, setup));
|
|
return z_impl_wdt_setup(dev, options);
|
|
}
|
|
|
|
#include <syscalls/wdt_setup_mrsh.c>
|
|
|
|
static inline int z_vrfy_wdt_disable(struct device *dev)
|
|
{
|
|
Z_OOPS(Z_SYSCALL_DRIVER_WDT(dev, disable));
|
|
return z_impl_wdt_disable(dev);
|
|
}
|
|
|
|
#include <syscalls/wdt_disable_mrsh.c>
|
|
|
|
static inline int z_vrfy_wdt_feed(struct device *dev, int channel_id)
|
|
{
|
|
Z_OOPS(Z_SYSCALL_DRIVER_WDT(dev, feed));
|
|
return z_impl_wdt_feed(dev, channel_id);
|
|
}
|
|
|
|
#include <syscalls/wdt_feed_mrsh.c>
|