Compare commits
No commits in common. "f236a64b21b2d0f864e15fa32f418aad145231e7" and "cb31e36e906516829e3ed82a9e47366ad71c266b" have entirely different histories.
f236a64b21
...
cb31e36e90
@ -264,7 +264,6 @@ private void map_hulk(PageTableEntry * pt_base)
|
|||||||
{
|
{
|
||||||
ulong virt = HULK_VIRTUAL_START;
|
ulong virt = HULK_VIRTUAL_START;
|
||||||
ulong hulk_bin_phys_start = cast(ulong)&hulk_bin_start;
|
ulong hulk_bin_phys_start = cast(ulong)&hulk_bin_start;
|
||||||
bootinfo.hulk_phys = hulk_bin_phys_start;
|
|
||||||
ulong hulk_bin_phys_end = cast(ulong)&hulk_bin_end;
|
ulong hulk_bin_phys_end = cast(ulong)&hulk_bin_end;
|
||||||
ulong phys_iter = hulk_bin_phys_start;
|
ulong phys_iter = hulk_bin_phys_start;
|
||||||
while (phys_iter < hulk_bin_phys_end)
|
while (phys_iter < hulk_bin_phys_end)
|
||||||
@ -279,8 +278,6 @@ private void map_hulk(PageTableEntry * pt_base)
|
|||||||
size_t hulk_bin_phys_size = hulk_bin_phys_end - hulk_bin_phys_end;
|
size_t hulk_bin_phys_size = hulk_bin_phys_end - hulk_bin_phys_end;
|
||||||
size_t bss_size = cast(size_t)hulk_header.total_size - hulk_bin_phys_size;
|
size_t bss_size = cast(size_t)hulk_header.total_size - hulk_bin_phys_size;
|
||||||
ulong bss_phys = alloc_hulk_bss(bss_size);
|
ulong bss_phys = alloc_hulk_bss(bss_size);
|
||||||
bootinfo.bss_phys = bss_phys;
|
|
||||||
bootinfo.bss_size = bss_size;
|
|
||||||
ulong bss_phys_end = bss_phys + bss_size;
|
ulong bss_phys_end = bss_phys + bss_size;
|
||||||
while (bss_phys < bss_phys_end)
|
while (bss_phys < bss_phys_end)
|
||||||
{
|
{
|
||||||
@ -350,7 +347,7 @@ extern (C) EFI_STATUS efi_main(EFI_HANDLE image_handle, EFI_SYSTEM_TABLE * st)
|
|||||||
|
|
||||||
console.clear();
|
console.clear();
|
||||||
|
|
||||||
console.writeln("Welcome to HELLO, HOS EFI Lightweight LOader, v0.1.0");
|
console.writeln("HELLO, HOS EFI Lightweight LOader, v0.1.0");
|
||||||
console.writeln("Firmware vendor: '%S', version: 0x%x", st.FirmwareVendor, st.FirmwareVendor);
|
console.writeln("Firmware vendor: '%S', version: 0x%x", st.FirmwareVendor, st.FirmwareVendor);
|
||||||
|
|
||||||
if (!set_graphics_mode())
|
if (!set_graphics_mode())
|
||||||
|
@ -46,15 +46,6 @@ struct BootInfo
|
|||||||
|
|
||||||
/* Number of memory map entries. */
|
/* Number of memory map entries. */
|
||||||
size_t memory_map_count;
|
size_t memory_map_count;
|
||||||
|
|
||||||
/* Physical address of HULK. */
|
|
||||||
ulong hulk_phys;
|
|
||||||
|
|
||||||
/* Physical address used for HULK bss section. */
|
|
||||||
ulong bss_phys;
|
|
||||||
|
|
||||||
/* Size of HULK bss region. */
|
|
||||||
ulong bss_size;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** HULK base virtual address. */
|
/** HULK base virtual address. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user