summaryrefslogtreecommitdiffstats
path: root/apps/init/stage1/kprint.c
diff options
context:
space:
mode:
authorJon Santmyer <jon@jonsantmyer.com>2025-09-15 15:51:13 -0400
committerJon Santmyer <jon@jonsantmyer.com>2025-09-15 15:51:13 -0400
commit5d73ba1059771f3226c1f45d41a9e3f52d68ee3d (patch)
treed1a93562ddff3810162d5180c3fe3cda58e24dad /apps/init/stage1/kprint.c
parent76ee61642d9d5c7d2abb8b92adec7ec59bd8791a (diff)
downloadjove-os-main.tar.gz
jove-os-main.tar.bz2
jove-os-main.zip
begin init staging refactormain
Diffstat (limited to 'apps/init/stage1/kprint.c')
-rw-r--r--apps/init/stage1/kprint.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/apps/init/stage1/kprint.c b/apps/init/stage1/kprint.c
new file mode 100644
index 0000000..57e10f5
--- /dev/null
+++ b/apps/init/stage1/kprint.c
@@ -0,0 +1,15 @@
+#include "stage1.h"
+#include <kernel/syscall.h>
+
+void
+kputc(char c)
+{
+ _syscall_payload[0] = c;
+ syscall_invoke_noret(SYSCALL_DEBUG_PUTC);
+}
+
+void
+kputs(const char *s)
+{
+ for(; *s; s++) kputc(*s);
+}