move arch include dir

This commit is contained in:
Matheus
2023-04-08 19:28:58 -03:00
parent 320cc13d75
commit 1555becce5
8 changed files with 9 additions and 1 deletions
+2 -1
View File
@@ -3,11 +3,12 @@ ASMSOURCES= $(shell find -name *.asm)
OBJS=$(CSOURCES:.c=.o) $(ASMSOURCES:.asm=.asmo)
TARGET=x86-64
INCDIR=$(shell pwd)/include
ARCHINCDIR=$(shell pwd)/include/$(TARGET)/
ARCHDIR=$(shell pwd)/arch/$(TARGET)/
LDFLAGS=-ffreestanding -nostdlib -lgcc -Wl,-T,"$(ARCHDIR)/kernel.ld" -debug
# required for mpaland printf so it doesn't compile with floating point support, which results in build failures
PRINTFOPTS=-DPRINTF_DISABLE_SUPPORT_FLOAT
CFLAGS=-ffreestanding -mcmodel=kernel -O2 -mno-red-zone -mno-mmx -mno-sse -mno-sse2 -nostdlib -Wall -I "${INCDIR}" $(PRINTFOPTS)
CFLAGS=-ffreestanding -mcmodel=kernel -O2 -mno-red-zone -mno-mmx -mno-sse -mno-sse2 -nostdlib -Wall -I "${INCDIR}" -I "$(ARCHINCDIR)" $(PRINTFOPTS)
ASFLAGS=-felf64
astral: $(OBJS)
+1
View File
@@ -1,6 +1,7 @@
#include <arch/e9.h>
#include <logging.h>
#include <arch/cpu.h>
#include <arch/gdt.h>
static cpu_t bsp_cpu;
+6
View File
@@ -0,0 +1,6 @@
#ifndef _GDT_H
#define _GDT_H
void arch_gdt_reload();
#endif