From 30055ec1753b5f8cfc2940dba5d4188475fdbf7f Mon Sep 17 00:00:00 2001 From: Kimplul Date: Wed, 14 Sep 2022 23:34:58 +0300 Subject: add putch syscall for easier userspace debugging + Note that it is NOT intended for end user usage, just for debugging. --- include/apos/uapi.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'include/apos/uapi.h') diff --git a/include/apos/uapi.h b/include/apos/uapi.h index 6832f79..1ebdc21 100644 --- a/include/apos/uapi.h +++ b/include/apos/uapi.h @@ -181,6 +181,9 @@ struct sys_ret { } \ static inline struct sys_ret __##name +/** @name Misc syscalls. */ +/** @{ */ + /** * Noop syscall. * @@ -192,6 +195,19 @@ struct sys_ret { */ SYSCALL_DECLARE0(noop); +/** + * Putch syscall. + * + * @param ch Character to put. + * @param b Unused. + * @param c Unused. + * @param d Unused. + * @return \ref OK and 0. + */ +SYSCALL_DECLARE1(putch, ch); + +/** @} */ + /* @name Memory handling syscalls. */ /** @{ */ /** -- cgit v1.3