feat: dossier contenant les pilotes de périphériques

This commit is contained in:
Nicolas Hordé 2007-04-02 12:54:45 +00:00
parent 0c93eeb5bd
commit 3ccf030c20
4 changed files with 36 additions and 0 deletions

13
drivers/makefile Normal file
View File

@ -0,0 +1,13 @@
all: makall
makall: vga/vga.o
sync
clean:
(cd vga; make clean)
vga/vga.o:
(cd vga; make)

17
drivers/vga/makefile Normal file
View File

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

5
drivers/vga/vgahard.asm Normal file
View File

@ -0,0 +1,5 @@
[BITS 32]
SECTION .text

1
drivers/vga/vgatxt.c Normal file
View File

@ -0,0 +1 @@
#include <vga.h>