Move to ring 3

This commit is contained in:
2024-08-06 12:10:03 +02:00
parent c5ab6aaef1
commit cf7a7303e3
11 changed files with 456 additions and 175 deletions

View File

@@ -54,6 +54,11 @@ $(BUILD_DIR)/myos.bin: $(OBJECTS)
-include $(DEPENDS)
$(BUILD_DIR)/kernel/interrupts.o: $(SOURCE_DIR)/kernel/interrupts.c Makefile
@mkdir -p $(@D)
$(CC) -c $(CFLAGS) -mgeneral-regs-only -mno-red-zone $< -o $@
$(BUILD_DIR)/%.o: $(SOURCE_DIR)/%.c Makefile
@mkdir -p $(@D)
$(CC) -c $(CFLAGS) $< -o $@
@@ -61,3 +66,4 @@ $(BUILD_DIR)/%.o: $(SOURCE_DIR)/%.c Makefile
$(BUILD_DIR)/%.o: $(SOURCE_DIR)/%.S Makefile
@mkdir -p $(@D)
$(AS) $(ASFLAGS) $< -o $@