BarinkOS/src/kernel/kernel.h

39 lines
651 B
C
Raw Normal View History

#pragma once
extern "C"{
#include "../libc/include/string.h"
}
#include "vga/VBE.h"
#include "tty/kterm.h"
#include "./bootloader/multiboot.h"
2021-10-23 11:26:15 +00:00
#include "bootcheck.h"
#include "memory/PhysicalMemoryManager.h"
#include "gdt/gdtc.h"
#include "idt/idt.h"
2021-10-23 11:26:15 +00:00
#include "io.h"
#include "time.h"
#include "cpu.h"
#include "serial.h"
2021-11-25 21:05:16 +00:00
#include "pci.h"
#include "ide/ide.h"
2021-07-22 19:02:47 +00:00
#define CHECK_FLAG(flags, bit) ((flags) & (1 <<(bit)))
#define PANIC(message) { return; }
2021-07-22 19:02:47 +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");
}