Adding a skeleton for the memory management code
Moved the PMM away from being object orientated as it is just plain annoying renamed src folder to source Set timeout to 5 seconds in the grub config
This commit is contained in:
46
source/kernel/kernel.h
Normal file
46
source/kernel/kernel.h
Normal file
@ -0,0 +1,46 @@
|
||||
#pragma once
|
||||
extern "C"
|
||||
{
|
||||
#include "Lib/string.h"
|
||||
}
|
||||
|
||||
#include "definitions.h"
|
||||
|
||||
#include "Drivers/VGA/VBE.h"
|
||||
#include "Terminal/kterm.h"
|
||||
|
||||
#include "multiboot.h"
|
||||
#include "bootinfo.h"
|
||||
|
||||
#include "Memory/PhysicalMemoryManager.h"
|
||||
#include "Memory/memoryinfo.h"
|
||||
#include "Memory/VirtualMemoryManager.h"
|
||||
#include "KernelLauncher/bootcheck.h"
|
||||
|
||||
#include "Memory/GDT/gdtc.h"
|
||||
#include "Interrupts/idt/idt.h"
|
||||
|
||||
#include "Drivers/PIT/pit.h"
|
||||
#include "io.h"
|
||||
#include "cpu.h"
|
||||
#include "serial.h"
|
||||
|
||||
#include "time.h"
|
||||
#include "SuperVisorTerminal/superVisorTerminal.h"
|
||||
|
||||
#define CHECK_FLAG(flag, bit) ( flag & (1 << bit ))
|
||||
#define PANIC(message) {return;}
|
||||
|
||||
|
||||
void map_multiboot_info_structure(unsigned long addr);
|
||||
|
||||
extern "C" void kernel_main (BootInfo* bootinfo);
|
||||
|
||||
extern "C" const void* kernel_begin;
|
||||
extern "C" const void* kernel_end;
|
||||
|
||||
extern "C" uint32_t boot_page_directory;
|
||||
extern "C" uint32_t multiboot_page_table;
|
||||
|
||||
|
||||
const uint32_t KERNEL_BASE_ADDR = 0xC0000000;
|
Reference in New Issue
Block a user