new: mutex

This commit is contained in:
fslongjin
2022-07-31 17:09:12 +08:00
parent b98a3679c9
commit 946bbef392
10 changed files with 332 additions and 6 deletions

View File

@ -3,7 +3,7 @@ CFLAGS += -I .
kernel_common_subdirs:=libELF math
all: glib.o printk.o cpu.o bitree.o kfifo.o wait_queue.o
all: glib.o printk.o cpu.o bitree.o kfifo.o wait_queue.o mutex.o wait.o
@list='$(kernel_common_subdirs)'; for subdir in $$list; do \
echo "make all in $$subdir";\
cd $$subdir;\
@ -28,3 +28,9 @@ kfifo.o: kfifo.c
wait_queue.o: wait_queue.c
gcc $(CFLAGS) -c wait_queue.c -o wait_queue.o
mutex.o: mutex.c
gcc $(CFLAGS) -c mutex.c -o mutex.o
wait.o: sys/wait.c
gcc $(CFLAGS) -c sys/wait.c -o sys/wait.o