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

View File

@ -3,8 +3,7 @@
#include <system/system.h>
#include <sysdefs/ioctl.h>
#include <system/ioctl.h>
#include <sysdefs/ipcpipe.h>
#include <system/ipcpipe.h>
#include <uprintf.h>
void main(void) {
debugprint("Hello world from userspace in C");
@ -21,8 +20,7 @@ void main(void) {
ioctl_closefile(ioh);
char *aba = "Hello!";
ipcpipe(IPCPIPE_SELFPID, IPCPIPE_OUT, IPCPIPE_WRITE, (uint8_t *)aba, string_len(aba));
uprintf("Hello world using uprintf\n");
for(;;);
}