From 5d73ba1059771f3226c1f45d41a9e3f52d68ee3d Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Mon, 15 Sep 2025 15:51:13 -0400 Subject: begin init staging refactor --- apps/init/stage1/kprint.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 apps/init/stage1/kprint.c (limited to 'apps/init/stage1/kprint.c') 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 + +void +kputc(char c) +{ + _syscall_payload[0] = c; + syscall_invoke_noret(SYSCALL_DEBUG_PUTC); +} + +void +kputs(const char *s) +{ + for(; *s; s++) kputc(*s); +} -- cgit v1.2.1