Printf in userspace
This commit is contained in:
9
ulib/putchar.c
Normal file
9
ulib/putchar.c
Normal 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));
|
||||
}
|
Reference in New Issue
Block a user