🐛 页表拷贝的bug

This commit is contained in:
fslongjin
2022-05-06 11:44:53 +08:00
parent c9784b457c
commit b7437b24d7
7 changed files with 38 additions and 38 deletions

View File

@ -2,7 +2,7 @@ user_sub_dirs = libs
SUBDIR_ROOTS := .
DIRS := . $(shell find $(SUBDIR_ROOTS) -type d)
GARBAGE_PATTERNS := *.o *.s~ *.s *.S~ *.c~ *.h~ kernel
GARBAGE_PATTERNS := *.o *.s~ *.s *.S~ *.c~ *.h~ sys_api_lib
GARBAGE := $(foreach DIR,$(DIRS),$(addprefix $(DIR)/,$(GARBAGE_PATTERNS)))

View File

@ -25,6 +25,11 @@ int main()
read(fd, buf, 128);
put_string(buf, COLOR_YELLOW, COLOR_BLACK);
close(fd);
pid_t p = fork();
if(p == 0)
put_string("subproc\n", COLOR_PURPLE, COLOR_BLACK);
else put_string("parent proc\n", COLOR_ORANGE, COLOR_BLACK);
while (1)
;

Binary file not shown.