kernel: add k_uptime_get() as a system call

Uses new infrastructure for system calls with a 64-bit return value.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2017-10-08 12:23:55 -07:00 committed by Andrew Boie
commit a73d3737f1
2 changed files with 13 additions and 2 deletions

View file

@ -1334,7 +1334,7 @@ static inline void *_impl_k_timer_user_data_get(struct k_timer *timer)
*
* @return Current uptime.
*/
extern s64_t k_uptime_get(void);
__syscall s64_t k_uptime_get(void);
#ifdef CONFIG_TICKLESS_KERNEL
/**