Rework architecture

Signed-off-by: Julien CLEMENT <julien.clement@epita.fr>
This commit is contained in:
Julien CLEMENT 2021-07-26 08:50:31 +02:00
parent 7ceec0ee06
commit ac1b1f5376
8 changed files with 9 additions and 7 deletions

@ -32,16 +32,16 @@ OBJS = \
memory.o \
serial.o \
gdt.o \
idt.o \
isr.o \
pic.o
events/idt.o \
events/isr.o \
events/pic/pic.o
DEPS = $(OBJS:.o=.d)
all: $(TARGET)
$(TARGET): CPPFLAGS += -MMD -Iinclude -I ../libs/libc/include/
$(TARGET): CPPFLAGS += -MMD -Iinclude -I ../libs/libc/include/ -I.
$(TARGET): CFLAGS += $(K_EXTRA_CFLAGS) -g
$(TARGET): LDFLAGS += -Wl,-Tk.lds
$(TARGET): LDLIBS = -L../libs/libc -lc

@ -1,5 +1,7 @@
#include "idt.h"
#include "stdio.h"
#include "pic/pic.h"
#include "io.h"
static struct idt idt = { 0 };

@ -1,4 +1,4 @@
#include "idt.h"
#include "events/idt.h"
#include "io.h"
#include "pic.h"
#include "stdio.h"

4
k/k.c

@ -24,9 +24,9 @@
#include <k/kstd.h>
#include "gdt.h"
#include "idt.h"
#include "events/idt.h"
#include "multiboot.h"
#include "pic.h"
#include "events/pic/pic.h"
#include "serial.h"
#include "stdio.h"