aboutsummaryrefslogtreecommitdiff
path: root/include/apos/uapi.h
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2022-09-14 23:34:58 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2022-09-14 23:34:58 +0300
commit30055ec1753b5f8cfc2940dba5d4188475fdbf7f (patch)
tree5497eb92f0f7083755589ca5a31755166a739522 /include/apos/uapi.h
parentcabbf335824db0df835e4c541c19d3803ce38454 (diff)
downloadkmi-30055ec1753b5f8cfc2940dba5d4188475fdbf7f.tar.gz
kmi-30055ec1753b5f8cfc2940dba5d4188475fdbf7f.zip
add putch syscall for easier userspace debugging
+ Note that it is NOT intended for end user usage, just for debugging.
Diffstat (limited to 'include/apos/uapi.h')
-rw-r--r--include/apos/uapi.h16
1 files changed, 16 insertions, 0 deletions
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. */
/** @{ */
/**