mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-18 08:06:32 +00:00
🆕 内核线程(在kernel_thtread函数中调用test_mm会产生问题)
This commit is contained in:
@ -10,8 +10,8 @@ all: kernel
|
||||
objcopy -I elf64-x86-64 -S -R ".eh_frame" -R ".comment" -O binary kernel ../bin/kernel/kernel.bin
|
||||
|
||||
|
||||
kernel: head.o entry.o main.o printk.o trap.o mm.o irq.o 8259A.o
|
||||
ld -b elf64-x86-64 -z muldefs -o kernel head.o exception/entry.o main.o common/printk.o exception/trap.o exception/irq.o exception/8259A.o mm/mm.o -T link.lds
|
||||
kernel: head.o entry.o main.o printk.o trap.o mm.o irq.o 8259A.o process.o
|
||||
ld -b elf64-x86-64 -z muldefs -o kernel head.o exception/entry.o main.o common/printk.o exception/trap.o exception/irq.o exception/8259A.o mm/mm.o process/process.o -T link.lds
|
||||
|
||||
head.o: head.S
|
||||
gcc -E head.S > head.s # 预处理
|
||||
@ -44,5 +44,8 @@ irq.o: exception/irq.c
|
||||
mm.o: mm/mm.c
|
||||
gcc -mcmodel=large -fno-builtin -m64 -c mm/mm.c -o mm/mm.o
|
||||
|
||||
process.o: process/process.c
|
||||
gcc -mcmodel=large -fno-builtin -m64 -c process/process.c -o process/process.o
|
||||
|
||||
clean:
|
||||
rm -rf $(GARBAGE)
|
Reference in New Issue
Block a user