2023-05-17 20:20:53 -07:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2023-05-18 01:16:53 -07:00
|
|
|
#include "boot/boot_info.h"
|
|
|
|
#include "boot/limine.h"
|
2023-05-17 21:41:08 -07:00
|
|
|
#include "common/gdt.h"
|
2023-05-17 20:42:59 -07:00
|
|
|
#include "debug/debug.h"
|
2023-05-17 22:54:37 -07:00
|
|
|
#include "interrupt/interrupt.h"
|
2023-05-18 09:46:41 -07:00
|
|
|
#include "memory/kernel_heap.h"
|
2023-05-18 01:18:51 -07:00
|
|
|
#include "memory/paging_util.h"
|
2023-05-17 20:20:53 -07:00
|
|
|
|
|
|
|
extern "C" void zion() {
|
2023-05-17 21:41:08 -07:00
|
|
|
InitGdt();
|
2023-05-17 22:54:37 -07:00
|
|
|
InitIdt();
|
2023-05-18 01:18:51 -07:00
|
|
|
InitPaging();
|
2023-05-18 01:16:53 -07:00
|
|
|
|
2023-05-18 09:46:41 -07:00
|
|
|
KernelHeap heap(0xFFFFFFFF'40000000, 0xFFFFFFFF'80000000);
|
|
|
|
heap.Allocate(1);
|
2023-05-17 20:20:53 -07:00
|
|
|
|
|
|
|
while (1)
|
|
|
|
;
|
|
|
|
}
|