add atapi driver
This commit is contained in:
@@ -3,7 +3,7 @@ OBJS = bin/boot.o bin/kernel.o bin/idt.o bin/isr.o bin/screen.o \
|
||||
bin/utils.o bin/string.o bin/stdio.o bin/disk.o bin/pic.o bin/pit.o \
|
||||
bin/keyboard.o bin/paging.o bin/page_alloc.o bin/page_tables.o \
|
||||
bin/fat.o bin/task.o bin/switch.o bin/sys_exit.o bin/gdt.o bin/isr-asm.o \
|
||||
bin/kheap.o bin/liballoc.o bin/exec_from_file.o bin/syscalls.o
|
||||
bin/kheap.o bin/liballoc.o bin/exec_from_file.o bin/syscalls.o bin/atapi.o
|
||||
|
||||
# Define the compiler and assembler
|
||||
#CC = i686-elf-gcc -D__is_katauos
|
||||
@@ -50,6 +50,13 @@ image:
|
||||
sudo umount /mnt
|
||||
sudo losetup -D
|
||||
|
||||
iso:
|
||||
cp katauos.bin grubshit/boot
|
||||
grub-mkrescue -o boot.iso grubshit/
|
||||
|
||||
test-cdrom:
|
||||
qemu-system-i386 -cdrom boot.iso -m 4096M -d int
|
||||
|
||||
test:
|
||||
qemu-system-i386 -drive file=boot.iso,media=disk,format=raw -m 4096M -d int
|
||||
|
||||
@@ -140,6 +147,9 @@ bin/exec_from_file.o: src/tasking/exec_from_file.c
|
||||
bin/syscalls.o: src/tasking/syscalls.c
|
||||
$(CC) $(CFLAGS) -c $< -o $@
|
||||
|
||||
bin/atapi.o: src/drivers/atapi.c
|
||||
$(CC) $(CFLAGS) -c $< -o $@
|
||||
|
||||
clean:
|
||||
rm -rf bin/
|
||||
rm -f $(OUTPUT)
|
||||
|
||||
Reference in New Issue
Block a user