I don't even know what to write at this point

This commit is contained in:
Jozef Nagy 2025-03-10 17:10:35 +01:00
parent df0ebbbbcd
commit 72a46bc7ce
Signed by untrusted user who does not match committer: crz
GPG key ID: 459A4811CEAC7068
12 changed files with 235 additions and 96 deletions

View file

@ -20,7 +20,7 @@
#include <vfs/vfs.h>
#include <mm/mman.h>
#include <mm/vmm.h>
#include <loader/elf.h>
#include <proto/aurix.h>
#include <print.h>
void axboot_init()
@ -31,22 +31,7 @@ void axboot_init()
while (1);
}
// read kernel -> test read
char *kbuf = NULL;
vfs_read("\\System\\axkrnl", &kbuf);
// TODO: Do something with the kernel :p
uintptr_t *pm = create_pagemap();
if (!pm) {
debug("axboot_init(): Failed to create kernel pagemap! Halting...\n");
// TODO: Halt
while (1);
}
void *kernel_entry = (void *)elf_load(kbuf, pm);
(void)kernel_entry;
mem_free(kbuf);
aurix_load("\\System\\axkrnl");
while (1);
}