Finished Aurix Protocol, AxBoot logs to file now

This commit is contained in:
Jozef Nagy 2025-05-24 21:12:40 +02:00
parent b1d59e02eb
commit d1a5d7d43d
Signed by untrusted user who does not match committer: crz
GPG key ID: 459A4811CEAC7068
37 changed files with 744 additions and 221 deletions

View file

@ -31,18 +31,18 @@ void axboot_init()
uart_init(115200);
if (!vfs_init("\\")) {
debug("axboot_init(): Failed to mount boot drive! Halting...\n");
log("axboot_init(): Failed to mount boot drive! Halting...\n");
// TODO: Halt
while (1);
}
config_init();
#ifdef AXBOOT_UEFI
#include <driver.h>
load_drivers();
#endif
//config_init();
// boot straight away
if (config_get_timeout() < 1) {
struct axboot_entry *entries = config_get_entries();
@ -51,16 +51,6 @@ void axboot_init()
ui_init();
debug("axboot_init(): Returned from main menu, something went wrong. Halting!");
//UNREACHABLE();
// just boot aurixos for now
struct axboot_entry axos = {
.name = "AurixOS",
.description = "",
.image_path = "\\System\\axkrnl",
.protocol = PROTO_AURIX
};
loader_load(&axos);
log("axboot_init(): Returned from main menu, something went wrong. Halting!");
UNREACHABLE();
}