kernel: Port remaining syscalls to new API
These calls are not accessible in CI test, nor do they get built on common platforms (in at least one case I found a typo which proved the code was truly unused). These changes are blind, so live in a separate commit. But the nature of the port is mechanical, all other syscalls in the system work fine, and any errors should be easily corrected. Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
This commit is contained in:
parent
346cce31d8
commit
075c94f6e2
15 changed files with 154 additions and 67 deletions
|
@ -7,34 +7,41 @@
|
|||
#include <syscall_handler.h>
|
||||
#include <drivers/rtc.h>
|
||||
|
||||
Z_SYSCALL_HANDLER(rtc_read, dev)
|
||||
static inline u32_t z_vrfy_rtc_read(struct device *dev)
|
||||
{
|
||||
Z_OOPS(Z_SYSCALL_DRIVER_RTC(dev, read));
|
||||
return z_impl_rtc_read((struct device *)dev);
|
||||
}
|
||||
|
||||
Z_SYSCALL_HANDLER(rtc_enable, dev)
|
||||
static inline void z_vrfy_rtc_enable(struct device *dev)
|
||||
{
|
||||
Z_OOPS(Z_SYSCALL_DRIVER_RTC(dev, enable));
|
||||
z_impl_rtc_enable((struct device *)dev);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Z_SYSCALL_HANDLER(rtc_disable, dev)
|
||||
static inline void z_vrfy_rtc_disable(struct device *dev)
|
||||
{
|
||||
Z_OOPS(Z_SYSCALL_DRIVER_RTC(dev, disable));
|
||||
z_impl_rtc_disable((struct device *)dev);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Z_SYSCALL_HANDLER(rtc_set_alarm, dev, alarm_val)
|
||||
static inline int z_vrfy_rtc_set_alarm(struct device *dev,
|
||||
const u32_t alarm_val)
|
||||
{
|
||||
Z_OOPS(Z_SYSCALL_DRIVER_RTC(dev, set_alarm));
|
||||
return z_impl_rtc_set_alarm((struct device *)dev, alarm_val);
|
||||
}
|
||||
|
||||
Z_SYSCALL_HANDLER(rtc_get_pending_int, dev)
|
||||
static inline int z_vrfy_rtc_get_pending_int(struct device *dev)
|
||||
{
|
||||
Z_OOPS(Z_SYSCALL_DRIVER_RTC(dev, get_pending_int));
|
||||
return z_impl_rtc_get_pending_int((struct device *)dev);
|
||||
}
|
||||
|
||||
#include <syscalls/rtc_read_mrsh.c>
|
||||
#include <syscalls/rtc_enable_mrsh.c>
|
||||
#include <syscalls/rtc_disable_mrsh.c>
|
||||
#include <syscalls/rtc_set_alarm_mrsh.c>
|
||||
#include <syscalls/rtc_get_pending_int_mrsh.c>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue