From 3ccf030c2022582f08bcb4761e7eaf4bf1fa8f88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Hord=C3=A9?= Date: Mon, 2 Apr 2007 12:54:45 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20dossier=20contenant=20les=20pilotes=20d?= =?UTF-8?q?e=20p=C3=A9riph=C3=A9riques?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- drivers/makefile | 13 +++++++++++++ drivers/vga/makefile | 17 +++++++++++++++++ drivers/vga/vgahard.asm | 5 +++++ drivers/vga/vgatxt.c | 1 + 4 files changed, 36 insertions(+) create mode 100644 drivers/makefile create mode 100644 drivers/vga/makefile create mode 100644 drivers/vga/vgahard.asm create mode 100644 drivers/vga/vgatxt.c diff --git a/drivers/makefile b/drivers/makefile new file mode 100644 index 0000000..8b186b2 --- /dev/null +++ b/drivers/makefile @@ -0,0 +1,13 @@ +all: makall + +makall: vga/vga.o + sync + +clean: + (cd vga; make clean) + +vga/vga.o: + (cd vga; make) + + + diff --git a/drivers/vga/makefile b/drivers/vga/makefile new file mode 100644 index 0000000..75edc00 --- /dev/null +++ b/drivers/vga/makefile @@ -0,0 +1,17 @@ +FREEC=gcc -O4 -nostdinc -ffreestanding -fno-builtin -fomit-frame-pointer -Wall -I ../../Include -c -o +PARTIAL=-r +OBJS= vgahard.o \ + vgatxt.o + +all: + nasm -f elf -o vgahard.o vgahard.asm + + $(FREEC) vgatxt.o vgatxt.c + + ld $(PARTIAL) -o vga.o $(OBJS) + +clean: + rm -f *.o + rm -f *.bin + + diff --git a/drivers/vga/vgahard.asm b/drivers/vga/vgahard.asm new file mode 100644 index 0000000..e990554 --- /dev/null +++ b/drivers/vga/vgahard.asm @@ -0,0 +1,5 @@ +[BITS 32] + + + SECTION .text + \ No newline at end of file diff --git a/drivers/vga/vgatxt.c b/drivers/vga/vgatxt.c new file mode 100644 index 0000000..959ed06 --- /dev/null +++ b/drivers/vga/vgatxt.c @@ -0,0 +1 @@ +#include \ No newline at end of file