Jump to HULK

Unfortunately, crashes... :(
This commit is contained in:
Josh Holtrop 2022-03-18 23:16:07 -04:00
parent 6beb7da4cd
commit b1042fd649

View File

@ -191,6 +191,12 @@ private void build_page_tables()
write_cr3(cast(ulong)pt_base); write_cr3(cast(ulong)pt_base);
} }
private void jump_to_hulk()
{
void function(BootInfo *) hulk_start = cast(void function(BootInfo *))HULK_VIRTUAL_START;
hulk_start(&bootinfo);
}
extern (C) EFI_STATUS efi_main(EFI_HANDLE image_handle, EFI_SYSTEM_TABLE * st) extern (C) EFI_STATUS efi_main(EFI_HANDLE image_handle, EFI_SYSTEM_TABLE * st)
{ {
.st = st; .st = st;
@ -226,5 +232,7 @@ extern (C) EFI_STATUS efi_main(EFI_HANDLE image_handle, EFI_SYSTEM_TABLE * st)
build_page_tables(); build_page_tables();
jump_to_hulk();
return EFI_SUCCESS; return EFI_SUCCESS;
} }