Fix calcuation of reserved HULK binary pages

This commit is contained in:
Josh Holtrop 2022-10-18 16:23:13 -04:00
parent b1be5b888f
commit 747e824dae

View File

@ -48,7 +48,7 @@ struct hippo
{ {
size_t usable_memory; size_t usable_memory;
ulong[2][5] reserved = [ ulong[2][5] reserved = [
[header.bootinfo.hulk_phys, cast(ulong)header.total_size], [header.bootinfo.hulk_phys, cast(ulong)header.total_size - LinkerAddresses.hulk_bss_size],
[header.bootinfo.bss_phys, LinkerAddresses.hulk_bss_size], [header.bootinfo.bss_phys, LinkerAddresses.hulk_bss_size],
[header.bootinfo.stack_phys, header.stack_size], [header.bootinfo.stack_phys, header.stack_size],
[cast(ulong)header.bootinfo.fb.buffer, header.bootinfo.fb.height * header.bootinfo.fb.stride], [cast(ulong)header.bootinfo.fb.buffer, header.bootinfo.fb.height * header.bootinfo.fb.stride],