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

View File

@ -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

View File

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

View File

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

4
k/k.c
View File

@ -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"