misc: userspace support for printk()
To avoid making a system call for every character emitted, there is now a small line buffer if userspace is enabled. The interface to the kernel is a new system call which takes a sized buffer of console data. If userspace is not enabled this works like before. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
a568e1399f
commit
756f907274
3 changed files with 74 additions and 0 deletions
|
@ -4261,6 +4261,14 @@ extern void k_mem_domain_remove_thread(k_tid_t thread);
|
|||
* @} end defgroup mem_domain_apis
|
||||
*/
|
||||
|
||||
/**
|
||||
* @brief Emit a character buffer to the console device
|
||||
*
|
||||
* @param c String of characters to print
|
||||
* @param n The length of the string
|
||||
*/
|
||||
__syscall void k_str_out(char *c, size_t n);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue