diff --git a/Makefile b/Makefile index 4e998d8ffd..aed92d094f 100644 --- a/Makefile +++ b/Makefile @@ -142,6 +142,7 @@ UPROGS=\ $U/_logstress\ $U/_forphan\ $U/_dorphan\ + $U/_hello\ fs.img: mkfs/mkfs README $(UPROGS) mkfs/mkfs fs.img README $(UPROGS) diff --git a/user/hello.c b/user/hello.c new file mode 100644 index 0000000000..0c09069c77 --- /dev/null +++ b/user/hello.c @@ -0,0 +1,13 @@ +#include "kernel/types.h" +#include "kernel/stat.h" +#include "user/user.h" + +int main() +{ + printf("hello world, this is Hendry Lai.\n"); + printf("I am in CS 370, Fall 2025, Section 1002.\n\n"); + + exit(0); + + +}