Jump to HULK
Unfortunately, crashes... :(
This commit is contained in:
parent
6beb7da4cd
commit
b1042fd649
@ -191,6 +191,12 @@ private void build_page_tables()
|
||||
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)
|
||||
{
|
||||
.st = st;
|
||||
@ -226,5 +232,7 @@ extern (C) EFI_STATUS efi_main(EFI_HANDLE image_handle, EFI_SYSTEM_TABLE * st)
|
||||
|
||||
build_page_tables();
|
||||
|
||||
jump_to_hulk();
|
||||
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user