//init.c 일부 for(;;){ printf(1, "init: starting sh\n"); pid = fork(); if(pid = 0 && wpid != pid) printf(1, "zombie!\n"); } init.c는 xv6에서 가장 먼저 실행되는 user-level 프로그램이다. make-qemu를 통해서 xv6를 실행하면 init:starting sh라는 메세지와 함께 쉘이 실행된다. init.c에는 무한루프가 존재하고, ..
0. 쉘 명령어(커널명령어) 추가 Makefile의 UPROG와 EXTRA부분에 다음과 같이 추가해준다. 1) UPROG=\ ... _new\ 2) EXTRA=\ umalloc.c new.c\ 1. 파일 추가 README file in Xv6 is a generic file too. Searching for occurrences of README in the MakeFile and adding your required file will be sufficient. Suppose new.txt is the file you want to add. Parts of the MakeFile to be changed are: 1) fs.img: mkfs README new.txt $(UPROGS) ./mkfs fs...