From bb30cd2a658adc988032fd71396e858fed18efac Mon Sep 17 00:00:00 2001 From: hippoz <10706925-hippoz@users.noreply.gitlab.com> Date: Thu, 24 Feb 2022 18:16:17 +0200 Subject: [PATCH] rename vga to terminal and move to gfx folder --- Makefile | 2 +- vga.c => gfx/terminal.c | 2 +- vga.h => gfx/terminal.h | 0 kernel.c | 2 +- std/kstd.c | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) rename vga.c => gfx/terminal.c (98%) rename vga.h => gfx/terminal.h (100%) diff --git a/Makefile b/Makefile index f2cb23b..e4488da 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ CC=i686-elf-gcc bootstrap.o: bootstrap.s i686-elf-as bootstrap.s -o bootstrap.o -kernel.bin: bootstrap.o vga.o std/std.o std/kstd.o cpu/idt.o cpu/pic.o cpu/exception.o kernel.o +kernel.bin: bootstrap.o gfx/terminal.o std/std.o std/kstd.o cpu/idt.o cpu/pic.o cpu/exception.o kernel.o $(CC) -T linker.ld -o $@ -ffreestanding -O2 -nostdlib -lgcc $^ iso: kernel.bin diff --git a/vga.c b/gfx/terminal.c similarity index 98% rename from vga.c rename to gfx/terminal.c index 05148bd..96e2dae 100644 --- a/vga.c +++ b/gfx/terminal.c @@ -1,4 +1,4 @@ -#include "vga.h" +#include "gfx/terminal.h" #include "std/std.h" size_t terminal_row; diff --git a/vga.h b/gfx/terminal.h similarity index 100% rename from vga.h rename to gfx/terminal.h diff --git a/kernel.c b/kernel.c index aaebfa3..76e60ed 100644 --- a/kernel.c +++ b/kernel.c @@ -1,7 +1,7 @@ #include #include #include -#include "vga.h" +#include "gfx/terminal.h" #include "cpu/pic.h" #include "cpu/idt.h" #include "std/kstd.h" diff --git a/std/kstd.c b/std/kstd.c index 12b5083..2f3e89a 100644 --- a/std/kstd.c +++ b/std/kstd.c @@ -2,7 +2,7 @@ #include #include "std/kstd.h" #include "std/std.h" -#include "vga.h" +#include "gfx/terminal.h" int putchar(int ic) { char c = (char) ic;