Add: userland hello world code

This commit is contained in:
brice.boisson
2023-10-11 09:38:29 +09:00
parent 917988e871
commit 37dbb99f50
3 changed files with 13 additions and 2 deletions

10
app/hello_world.c Normal file
View File

@@ -0,0 +1,10 @@
#include <syscall.h>
static char s[] = "Hello from userland!\n";
int main(void)
{
write(1, s, 21);
while (1);
return 0;
}