kernel: expose k_busy_wait() to user mode
If we just had the kernel's implementation, we could just move this to lib/, but possible arch-specific implementations dictate that we just make this a syscall. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
f253d0779d
commit
42cfd4ff26
6 changed files with 23 additions and 11 deletions
|
@ -800,7 +800,7 @@ __syscall s32_t k_sleep(s32_t duration);
|
|||
*
|
||||
* @return N/A
|
||||
*/
|
||||
extern void k_busy_wait(u32_t usec_to_wait);
|
||||
__syscall void k_busy_wait(u32_t usec_to_wait);
|
||||
|
||||
/**
|
||||
* @brief Yield the current thread.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue