From af1ce4b2e637ceb418ea72d51c49a3eee276a938 Mon Sep 17 00:00:00 2001 From: stefan Date: Sat, 15 Apr 2023 05:02:02 +0000 Subject: added multiprocessor support --- sys/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/Makefile') diff --git a/sys/Makefile b/sys/Makefile index 2cfd2bb..02ee0df 100644 --- a/sys/Makefile +++ b/sys/Makefile @@ -13,7 +13,6 @@ SRC=\ kern/printf.c\ kern/mm/kalloc.c\ kern/spinlock.c\ - dev/sbi.c\ dev/fdt/fdt.c @@ -23,6 +22,8 @@ ${BUILDDIR}/kernel.elf: ${SRC} -Wl,--defsym=LOAD_ADDR=${LOAD_ADDR}\ -Wl,--defsym=PAGE_SIZE=${PAGE_SIZE}\ -Wl,--defsym=NPROC=${NPROC}\ + -DLOAD_ADDR=${LOAD_ADDR}\ + -DNPROC=${NPROC}\ -DPAGE_SIZE=${PAGE_SIZE}\ -I ./include\ ${CFLAGS} -T kern/kernel.lds ${LDFLAGS}\ -- cgit v1.2.3