reading path tables now, need to make kheap sooner or later

This commit is contained in:
2026-06-24 16:47:22 -05:00
parent 68dbdbb2c8
commit bf0d1caa89
9 changed files with 150 additions and 48 deletions

View File

@@ -1,15 +1,18 @@
#include "multiboot.h"
#include "idt.h"
#include "elf.h"
#include <lib/print.h>
#include <lib/stream.h>
#include <idt.h>
#include <stddef.h>
#include <stdint.h>
#include <lib/memory.h>
#include "memory/mm.h"
#include "elf.h"
#include "drivers/iso/iso.h"
#include "drivers/ide/ide.h"
#include <stddef.h>
#include <stdint.h>
extern void init_idt();
extern void init_gdt();
@@ -132,19 +135,18 @@ void kmain(uint32_t magic, multiboot_info* mbi) {
init_pit();
kprintf("PIT initialized\n");
// int result = init_ps2();
// if (result == -1) {
// kprintf("PS2 init failed\n");
// return;
// }
// kprintf("PS2 initialized\n");
init_page_tables();
kprintf("Page tables initialized\n");
kheap_init();
kprintf("Allocated 4kb for kernel heap\n");
kprintf("scanning for drives\n");
extern void scan_drives();
scan_drives();
ide_device_t* boot_cd_rom = get_ide_device(0);
read_iso(boot_cd_rom);
while(1);
}