Move vga.* to drivers/.
This commit is contained in:
parent
e40bde036d
commit
f29ddf75d4
4
Makefile
4
Makefile
@ -25,7 +25,7 @@ fs.img: kernel.bin tools/mkfs
|
||||
image.bin: mbr.bin fs.img
|
||||
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 $^
|
||||
|
||||
%.o: %.c
|
||||
@ -41,7 +41,7 @@ mbr.elf: mbr.o
|
||||
$(LD) -m elf_i386 -Ttext=0x7c00 $^ -o $@
|
||||
|
||||
clean:
|
||||
rm -f *.bin *.o tools/mkfs
|
||||
rm -f *.elf *.bin *.o tools/mkfs
|
||||
|
||||
tools/%: tools/%.c
|
||||
gcc -Wall -Werror -g $^ -o $@
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
#include <stdint.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.
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
#include "../port.h"
|
||||
#include "port.h"
|
||||
|
||||
__attribute__((noreturn))
|
||||
static inline void qemu_shutdown() {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#include "port.h"
|
||||
#include "string.h"
|
||||
#include "../string.h"
|
||||
|
||||
char* const video_memory = (char*) 0xb8000;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user