Interrupts & pic added

This commit is contained in:
Fergal Moran
2020-06-08 16:41:11 +01:00
parent c1e6d245b1
commit ea7e6ea4ee
7 changed files with 298 additions and 1 deletions

View File

@@ -7,6 +7,7 @@
*/
#include "../include/gdt.h"
#include "../include/interrupts.h"
#include "../include/types.h"
void printf(char* str) {
@@ -54,6 +55,12 @@ extern "C" void ferglos_Main(const void* multiboot_structure, uint32_t /*mb_mag*
printf("Hitler blinks.");
GlobalDescriptorTable gdt;
InterruptManager interrupts(&gdt);
//instantiate hardware in here somewhere
interrupts.Activate();
while (1)
;
}