Re-wrote boot code, moved to x86 folder

This commit is contained in:
2020-12-09 05:08:55 -06:00
parent 231d6c4464
commit d2eecf95e5
11 changed files with 160 additions and 222 deletions

View File

@@ -1,12 +1,15 @@
noinst_PROGRAMS = quark-kernel
quark_kernel_SOURCES = startup.cpp module.cpp tty.cpp systeminfo.cpp util.cpp memorymap.cpp pageallocator.cpp allocator.cpp scheduler.cpp
quark_kernel_SOURCES = kernelstate.cpp module.cpp systeminfo.cpp util.cpp memorymap.cpp pageallocator.cpp allocator.cpp scheduler.cpp
quark_kernel_LDADD = -lgcc
quark_kernel_CPPFLAGS = -ffreestanding -mgeneral-regs-only -O0 -Wall -fno-exceptions -fno-rtti -ggdb
quark_kernel_LDFLAGS = -nostdlib
if x86
quark_kernel_SOURCES += x86/mmap.cpp \
x86/tty.cpp \
x86/interrupts.cpp \
x86/multiboot2.cpp \
x86/initialize.cpp \
x86/entry.S
quark_kernel_LDFLAGS += -T x86/linker.ld
quark_kernel_DEPENDENCIES = x86/linker.ld