feat: dossier contenant les pilotes de périphériques
This commit is contained in:
parent
0c93eeb5bd
commit
3ccf030c20
13
drivers/makefile
Normal file
13
drivers/makefile
Normal 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
17
drivers/vga/makefile
Normal 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
5
drivers/vga/vgahard.asm
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
[BITS 32]
|
||||||
|
|
||||||
|
|
||||||
|
SECTION .text
|
||||||
|
|
1
drivers/vga/vgatxt.c
Normal file
1
drivers/vga/vgatxt.c
Normal file
@ -0,0 +1 @@
|
|||||||
|
#include <vga.h>
|
Loading…
x
Reference in New Issue
Block a user