diff options
Diffstat (limited to 'apps/init/stage1/kprint.c')
-rw-r--r-- | apps/init/stage1/kprint.c | 15 |
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); +} |