Move vga.* to drivers/.

This commit is contained in:
Alexander Myltsev 2022-11-20 16:06:32 +03:00
parent e40bde036d
commit f29ddf75d4
7 changed files with 6 additions and 6 deletions

View File

@ -25,7 +25,7 @@ fs.img: kernel.bin tools/mkfs
image.bin: mbr.bin fs.img image.bin: mbr.bin fs.img
cat $^ >$@ cat $^ >$@
kernel.bin: kernel.o vga.o string.o drivers/ata.o kernel.bin: kernel.o drivers/vga.o string.o drivers/ata.o
$(LD) -m elf_i386 -o $@ -Ttext 0x1000 $^ $(LD) -m elf_i386 -o $@ -Ttext 0x1000 $^
%.o: %.c %.o: %.c
@ -41,7 +41,7 @@ mbr.elf: mbr.o
$(LD) -m elf_i386 -Ttext=0x7c00 $^ -o $@ $(LD) -m elf_i386 -Ttext=0x7c00 $^ -o $@
clean: clean:
rm -f *.bin *.o tools/mkfs rm -f *.elf *.bin *.o tools/mkfs
tools/%: tools/%.c tools/%: tools/%.c
gcc -Wall -Werror -g $^ -o $@ gcc -Wall -Werror -g $^ -o $@

View File

@ -3,7 +3,7 @@
#include <stdint.h> #include <stdint.h>
#include "ata.h" #include "ata.h"
#include "../port.h" #include "port.h"
/* /*
BSY: a 1 means that the controller is busy executing a command. No register should be accessed (except the digital output register) while this bit is set. BSY: a 1 means that the controller is busy executing a command. No register should be accessed (except the digital output register) while this bit is set.

View File

@ -1,5 +1,5 @@
#pragma once #pragma once
#include "../port.h" #include "port.h"
__attribute__((noreturn)) __attribute__((noreturn))
static inline void qemu_shutdown() { static inline void qemu_shutdown() {

View File

@ -1,5 +1,5 @@
#include "port.h" #include "port.h"
#include "string.h" #include "../string.h"
char* const video_memory = (char*) 0xb8000; char* const video_memory = (char*) 0xb8000;

View File

@ -1,6 +1,6 @@
asm(".asciz \"kernel start\""); asm(".asciz \"kernel start\"");
#include "vga.h" #include "drivers/vga.h"
#include "drivers/ata.h" #include "drivers/ata.h"
#include "drivers/misc.h" #include "drivers/misc.h"