1
0
mirror of https://gitlab.os-k.eu/os-k-team/os-k.git synced 2023-08-25 14:03:10 +02:00

cpu => ke

This commit is contained in:
Julian Barathieu 2019-05-14 13:17:24 +02:00
parent 1f83c92da0
commit 78622a134d
6 changed files with 10 additions and 10 deletions

View File

@ -91,8 +91,8 @@ LibCDep=$(patsubst %.c,$(KOBJDIR)/%.d,$(LibCSources))
LibCObj += $(KOBJDIR)/libc/atoi.o $(KOBJDIR)/libc/itoa.o LibCObj += $(KOBJDIR)/libc/atoi.o $(KOBJDIR)/libc/itoa.o
# Kernel sources # Kernel sources
KernSources = kernel/cpu/cpuid.c \ KernSources = kernel/ke/cpuid.c \
kernel/cpu/idt.c kernel/init/init.c \ kernel/ke/idt.c kernel/init/init.c \
kernel/init/table.c kernel/io/cursor.c \ kernel/init/table.c kernel/io/cursor.c \
kernel/ke/log.c kernel/io/vga.c \ kernel/ke/log.c kernel/io/vga.c \
kernel/ke/panic.c kernel/mm/map.c \ kernel/ke/panic.c kernel/mm/map.c \
@ -152,10 +152,10 @@ $(KOBJDIR)/libc/mem.o: $(KALEIDDIR)/libc/mem.c | $(KOBJDIR)
## KERNEL MAKEFILE ----------------------------------------------------------- # ## KERNEL MAKEFILE ----------------------------------------------------------- #
-include $(KernDep) -include $(KernDep)
$(KOBJDIR)/kernel/cpu/idt.o: $(KALEIDDIR)/kernel/cpu/idt.c \ $(KOBJDIR)/kernel/ke/idt.o: $(KALEIDDIR)/kernel/ke/idt.c \
$(KALEIDDIR)/kernel/cpu/isr.asm | $(KOBJDIR) $(KALEIDDIR)/kernel/ke/isr.asm | $(KOBJDIR)
@mkdir -p $(shell dirname $@) @mkdir -p $(shell dirname $@)
@$(ASM) $(ASMFLAGS) $(KALEIDDIR)/kernel/cpu/isr.asm -o $@.1 @$(ASM) $(ASMFLAGS) $(KALEIDDIR)/kernel/ke/isr.asm -o $@.1
@$(KCC) $< -o $@.2 @$(KCC) $< -o $@.2
@$(LD) $(LDFLAGS) -r $@.1 $@.2 -o $@ @$(LD) $(LDFLAGS) -r $@.1 $@.2 -o $@
@rm -f $@.1 $@.2 @rm -f $@.1 $@.2
@ -170,10 +170,10 @@ $(KOBJDIR)/kernel/mm/gdt.o: $(KALEIDDIR)/kernel/mm/gdt.c \
@rm -f $@.1 $@.2 @rm -f $@.1 $@.2
@echo ${CL2}[$@] ${CL}Compiled.${CL3} @echo ${CL2}[$@] ${CL}Compiled.${CL3}
$(KOBJDIR)/kernel/cpu/cpuid.o: $(KALEIDDIR)/kernel/cpu/cpuid.c \ $(KOBJDIR)/kernel/ke/cpuid.o: $(KALEIDDIR)/kernel/ke/cpuid.c \
$(KALEIDDIR)/kernel/cpu/cpuf.asm | $(KOBJDIR) $(KALEIDDIR)/kernel/ke/cpuf.asm | $(KOBJDIR)
@mkdir -p $(shell dirname $@) @mkdir -p $(shell dirname $@)
@$(ASM) $(ASMFLAGS) $(KALEIDDIR)/kernel/cpu/cpuf.asm -o $@.1 @$(ASM) $(ASMFLAGS) $(KALEIDDIR)/kernel/ke/cpuf.asm -o $@.1
@$(KCC) $< -o $@.2 @$(KCC) $< -o $@.2
@$(LD) $(LDFLAGS) -r $@.1 $@.2 -o $@ @$(LD) $(LDFLAGS) -r $@.1 $@.2 -o $@
@rm -f $@.1 $@.2 @rm -f $@.1 $@.2

View File

@ -24,5 +24,5 @@
[BITS 64] [BITS 64]
%include "kaleid/kernel/cpu/cpuf.inc" %include "kaleid/kernel/ke/cpuf.inc"

View File

@ -24,7 +24,7 @@
[BITS 64] [BITS 64]
%include "kaleid/kernel/cpu/cpuf.inc" %include "kaleid/kernel/ke/cpuf.inc"
global KeLoadIDT global KeLoadIDT
global divideByZero global divideByZero