Merge into main the new state of the operating system/kernel #1

Open
Nigel wants to merge 120 commits from dev into main
77 changed files with 8 additions and 8 deletions
Showing only changes of commit 364d10d02e - Show all commits

View File

@ -27,7 +27,7 @@ $(BUILD_DIR)/sv-terminal.o \
SRC_DIR = src SRC_DIR = source
BUILD_DIR = build BUILD_DIR = build
CRTBEGIN_OBJ = $(shell $(CC) $(CFLAGS) -print-file-name=crtbegin.o) CRTBEGIN_OBJ = $(shell $(CC) $(CFLAGS) -print-file-name=crtbegin.o)
@ -50,7 +50,7 @@ clean_iso:
iso: clean_iso clean build iso: clean_iso clean build
mkdir -p root/boot/grub mkdir -p root/boot/grub
cp build/myos.bin root/boot/myos.bin cp build/myos.bin root/boot/myos.bin
cp src/grub.cfg root/boot/grub/grub.cfg cp source/grub.cfg root/boot/grub/grub.cfg
grub-mkrescue -o build/barinkOS.iso root grub-mkrescue -o build/barinkOS.iso root
run: all run: all
virtualboxvm --startvm "BarinkOS_test" virtualboxvm --startvm "BarinkOS_test"
@ -62,7 +62,7 @@ test_iso:
$(EMULATOR) -boot d -cdrom $(BUILD_DIR)/barinkOS.iso -serial stdio -vga std -display gtk -m 2G -cpu core2duo $(EMULATOR) -boot d -cdrom $(BUILD_DIR)/barinkOS.iso -serial stdio -vga std -display gtk -m 2G -cpu core2duo
build_kernel: $(OBJ_LINK_LIST) build_kernel: $(OBJ_LINK_LIST)
$(CC) -T $(SRC_DIR)/kernel//linker.ld -o $(BUILD_DIR)/myos.bin \ $(CC) -T $(SRC_DIR)/kernel/linker.ld -o $(BUILD_DIR)/myos.bin \
-ffreestanding -O2 -nostdlib $(OBJ_LINK_LIST) -lgcc -ffreestanding -O2 -nostdlib $(OBJ_LINK_LIST) -lgcc
build_x86_64: build_x86_64:

View File

@ -21,11 +21,11 @@ stack_bottom:
stack_top: stack_top:
.section .text .section .text
.include "./src/kernel/gdt/gdt.s" .include "./source/kernel/gdt/gdt.s"
.include "./src/kernel/irs_table.s" .include "./source/kernel/irs_table.s"
.include "./src/kernel/irq_table.s" .include "./source/kernel/irq_table.s"
.include "./src/kernel/idt/idt.s" .include "./source/kernel/idt/idt.s"
.include "./src/kernel/memory/paging.s" .include "./source/kernel/memory/paging.s"
.global _start .global _start