Add: userland hello world code
This commit is contained in:
10
app/hello_world.c
Normal file
10
app/hello_world.c
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user