2021-11-03 19:03:38 +00:00
|
|
|
#pragma once
|
|
|
|
extern "C"{
|
|
|
|
#include "../libc/include/string.h"
|
2021-05-10 20:33:25 +00:00
|
|
|
}
|
2021-11-29 19:00:28 +00:00
|
|
|
|
|
|
|
|
2021-11-16 12:57:15 +00:00
|
|
|
#include "vga/VBE.h"
|
|
|
|
#include "tty/kterm.h"
|
2021-05-16 14:53:14 +00:00
|
|
|
|
2021-11-02 20:15:00 +00:00
|
|
|
#include "./bootloader/multiboot.h"
|
2021-10-23 11:26:15 +00:00
|
|
|
#include "bootcheck.h"
|
2021-11-06 15:27:13 +00:00
|
|
|
#include "memory/PhysicalMemoryManager.h"
|
2021-11-03 19:03:38 +00:00
|
|
|
|
2021-11-16 12:57:15 +00:00
|
|
|
#include "gdt/gdtc.h"
|
|
|
|
#include "idt/idt.h"
|
2021-10-23 11:26:15 +00:00
|
|
|
|
2021-05-10 20:33:25 +00:00
|
|
|
#include "io.h"
|
2021-05-18 20:14:26 +00:00
|
|
|
#include "time.h"
|
2021-07-22 21:14:58 +00:00
|
|
|
#include "cpu.h"
|
2021-11-03 19:03:38 +00:00
|
|
|
#include "serial.h"
|
2021-11-25 21:05:16 +00:00
|
|
|
#include "pci.h"
|
2021-11-29 19:00:28 +00:00
|
|
|
#include "ide/ide.h"
|
2021-07-22 19:02:47 +00:00
|
|
|
|
2021-11-28 15:46:16 +00:00
|
|
|
|
2021-11-03 19:03:38 +00:00
|
|
|
#define CHECK_FLAG(flags, bit) ((flags) & (1 <<(bit)))
|
|
|
|
#define PANIC(message) { return; }
|
2021-07-22 19:02:47 +00:00
|
|
|
|
2021-07-22 21:14:58 +00:00
|
|
|
|
|
|
|
/* This needs to be moved! */
|
|
|
|
/**
|
|
|
|
* simple delay function
|
|
|
|
**/
|
|
|
|
void delay(int t){
|
|
|
|
volatile int i,j;
|
|
|
|
for(i=0;i<t;i++)
|
|
|
|
for(j=0;j<25000;j++)
|
|
|
|
asm("NOP");
|
|
|
|
}
|