Rework architecture
Signed-off-by: Julien CLEMENT <julien.clement@epita.fr>
This commit is contained in:
parent
7ceec0ee06
commit
ac1b1f5376
@ -32,16 +32,16 @@ OBJS = \
|
|||||||
memory.o \
|
memory.o \
|
||||||
serial.o \
|
serial.o \
|
||||||
gdt.o \
|
gdt.o \
|
||||||
idt.o \
|
events/idt.o \
|
||||||
isr.o \
|
events/isr.o \
|
||||||
pic.o
|
events/pic/pic.o
|
||||||
|
|
||||||
|
|
||||||
DEPS = $(OBJS:.o=.d)
|
DEPS = $(OBJS:.o=.d)
|
||||||
|
|
||||||
all: $(TARGET)
|
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): CFLAGS += $(K_EXTRA_CFLAGS) -g
|
||||||
$(TARGET): LDFLAGS += -Wl,-Tk.lds
|
$(TARGET): LDFLAGS += -Wl,-Tk.lds
|
||||||
$(TARGET): LDLIBS = -L../libs/libc -lc
|
$(TARGET): LDLIBS = -L../libs/libc -lc
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#include "idt.h"
|
#include "idt.h"
|
||||||
#include "stdio.h"
|
#include "stdio.h"
|
||||||
|
#include "pic/pic.h"
|
||||||
|
#include "io.h"
|
||||||
|
|
||||||
static struct idt idt = { 0 };
|
static struct idt idt = { 0 };
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
#include "idt.h"
|
#include "events/idt.h"
|
||||||
#include "io.h"
|
#include "io.h"
|
||||||
#include "pic.h"
|
#include "pic.h"
|
||||||
#include "stdio.h"
|
#include "stdio.h"
|
4
k/k.c
4
k/k.c
@ -24,9 +24,9 @@
|
|||||||
#include <k/kstd.h>
|
#include <k/kstd.h>
|
||||||
|
|
||||||
#include "gdt.h"
|
#include "gdt.h"
|
||||||
#include "idt.h"
|
#include "events/idt.h"
|
||||||
#include "multiboot.h"
|
#include "multiboot.h"
|
||||||
#include "pic.h"
|
#include "events/pic/pic.h"
|
||||||
#include "serial.h"
|
#include "serial.h"
|
||||||
#include "stdio.h"
|
#include "stdio.h"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user