Fixed some Task stuff, added DOSFS filesystem

This commit is contained in:
Lucia Ceionia
2022-09-21 17:14:11 -05:00
parent 6ebee28032
commit 9216b3359a
15 changed files with 2280 additions and 56 deletions

View File

@@ -1,11 +1,11 @@
objects = entry.o kernel.o task.o handler.o interrupt.o v86.o print.o tss.o
objects = entry.o kernel.o task.o handler.o interrupt.o v86.o print.o tss.o dosfs/dosfs.o
CFLAGS = -target "i686-elf" -m32 -mgeneral-regs-only -ffreestanding -march=pentium-m -fno-stack-protector -nostdlib -c
%.o: %.nasm
nasm -f elf32 -o $@ $<
%.o: %.c
clang $(CFLAGS) -O2 $<
clang $(CFLAGS) -O2 -o $@ $<
all: $(objects)
nasm boot.nasm -o boot.bin
@@ -17,3 +17,5 @@ virtdisk:
dd bs=1M count=32 if=/dev/zero of=virtdisk.bin
echo -n -e '\x55\xaa' | dd bs=1 seek=510 conv=notrunc of=virtdisk.bin
clean:
rm $(objects)