Moving lots into seperate folders to cleanup the project structure
- Drivers have now gotten Category folders - RSDP is now called ACPI - Ports folders is now called Serial to show that its a serial driver - Paging assembly definition is moved to the memory folder - VGA folder has moved into the drivers - Patched the makefile and include statements to reflect the changes in the project structure
This commit is contained in:
@ -24,7 +24,7 @@ stack_top:
|
||||
.include "./src/kernel/irs_table.s"
|
||||
.include "./src/kernel/irq_table.s"
|
||||
.include "./src/kernel/idt/idt.s"
|
||||
.include "./src/kernel/paging.s"
|
||||
.include "./src/kernel/memory/paging.s"
|
||||
|
||||
|
||||
.global _start
|
||||
|
@ -1,8 +1,8 @@
|
||||
#pragma once
|
||||
#include <stdint.h>
|
||||
#include "io.h"
|
||||
#include "tty/kterm.h"
|
||||
#include "pci/pciDevice.h"
|
||||
#include "../io.h"
|
||||
#include "../../../tty/kterm.h"
|
||||
#include "../../../pci/pciDevice.h"
|
||||
|
||||
// Configuration Space Access Mechanism #1
|
||||
#define CONFIG_ADDRESS 0xCF8 // Configuration adress that is to be accessed
|
@ -1,10 +1,10 @@
|
||||
#pragma once
|
||||
#include <stdint.h>
|
||||
#include "../../io.h"
|
||||
#include "../../ide/ideCommands.h"
|
||||
#include "../../ide/sampleIDE.definitions.h"
|
||||
#include "../io.h"
|
||||
#include "../../../ide/ideCommands.h"
|
||||
#include "../../../ide/sampleIDE.definitions.h"
|
||||
|
||||
#include "../../tty/kterm.h"
|
||||
#include "../../../tty/kterm.h"
|
||||
|
||||
/*
|
||||
* This first driver wil make use of IO ports.
|
@ -1,10 +1,10 @@
|
||||
#pragma once
|
||||
#include <stdint.h>
|
||||
#include "../../io.h"
|
||||
#include "../../ide/ideCommands.h"
|
||||
#include "../../ide/sampleIDE.definitions.h"
|
||||
#include "../io.h"
|
||||
#include "../../../ide/ideCommands.h"
|
||||
#include "../../../ide/sampleIDE.definitions.h"
|
||||
|
||||
#include "../../tty/kterm.h"
|
||||
#include "../../../tty/kterm.h"
|
||||
|
||||
/*
|
||||
* This first driver wil make use of IO ports.
|
@ -2,7 +2,7 @@
|
||||
|
||||
#include "stdint.h"
|
||||
#include "stddef.h"
|
||||
#include "../vga/colors.h"
|
||||
#include "../drivers/VGA/colors.h"
|
||||
#include "../pic/pic.h"
|
||||
|
||||
#include "../tty/kterm.h"
|
||||
|
@ -4,7 +4,7 @@ extern "C"{
|
||||
}
|
||||
|
||||
|
||||
#include "vga/VBE.h"
|
||||
#include "drivers/VGA/VBE.h"
|
||||
#include "tty/kterm.h"
|
||||
|
||||
#include "./bootloader/multiboot.h"
|
||||
@ -14,18 +14,17 @@ extern "C"{
|
||||
#include "gdt/gdtc.h"
|
||||
#include "idt/idt.h"
|
||||
|
||||
#include "io.h"
|
||||
#include "drivers/IO/io.h"
|
||||
#include "time.h"
|
||||
#include "cpu.h"
|
||||
#include "serial.h"
|
||||
#include "pci.h"
|
||||
#include "drivers/IO/PCI/pci.h"
|
||||
#include "ide/ide.h"
|
||||
//#include "drivers/atapi/atapiDevice.h"
|
||||
#include "drivers/ata/ataDevice.h"
|
||||
#include "./drivers/IO/ata/ataDevice.h"
|
||||
#include "./PartitionTable/MBR/MasterBootRecord.h"
|
||||
#include "./filesytems/FAT32/BiosParameterBlock.h"
|
||||
#include "./filesytems/FAT32/ExtendBootRecord.h"
|
||||
#include "./drivers/rsdp/rsdp.h"
|
||||
#include "drivers/ACPI/rsdp.h"
|
||||
|
||||
|
||||
#define CHECK_FLAG(flags, bit) ((flags) & (1 <<(bit)))
|
||||
|
@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
#include "../io.h"
|
||||
#include "../drivers/IO/io.h"
|
||||
|
||||
#define PIC1 0x20 /* IO base address for master PIC */
|
||||
#define PIC2 0xA0 /* IO base address for slave PIC */
|
||||
|
@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "tty/kterm.h"
|
||||
#include "io.h"
|
||||
#include "drivers/IO/io.h"
|
||||
#define PORT 0x3f8
|
||||
inline static int init_serial() {
|
||||
outb(PORT + 1, 0x00); // Disable all interrupts
|
||||
|
@ -4,8 +4,8 @@
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "../vga/colors.h"
|
||||
#include "../io.h"
|
||||
#include "../drivers/VGA/colors.h"
|
||||
#include "../drivers/IO/io.h"
|
||||
|
||||
extern "C"{
|
||||
#include "./../../libc/include/string.h"
|
||||
|
Reference in New Issue
Block a user