Printf in userspace

This commit is contained in:
2025-09-06 12:14:54 +02:00
parent cd0e262e56
commit 97bfa178d1
13 changed files with 1756 additions and 1728 deletions

9
ulib/putchar.c Normal file
View File

@ -0,0 +1,9 @@
#include <stdint.h>
#include <sysdefs/ipcpipe.h>
#include <system/ipcpipe.h>
#include <printf/printf.h>
void putchar_(char c) {
char buf = c;
ipcpipe(IPCPIPE_SELFPID, IPCPIPE_OUT, IPCPIPE_WRITE, (uint8_t *)&buf, sizeof(buf));
}