Add hulk.linker_addresses module

This commit is contained in:
josh committed 2022-04-26 19:37:05 -04:00
1 parent bf9a005dbc
commit 153a8d43f1
3 files changed
+60 -12

No files matched your search

+2 -3
View File
@@ -6,8 +6,7 @@ module hulk.hippo;
import hulk.header;
import hulk.bootinfo;
import hulk.klog;
extern extern(C) ubyte * _hulk_bss_size;
import hulk.linker_addresses;
struct hippo
{
@@ -50,7 +49,7 @@ struct hippo
size_t usable_memory;
ulong[2][5] reserved = [
[header.bootinfo.hulk_phys, cast(ulong)header.total_size],
[header.bootinfo.bss_phys, cast(ulong)&_hulk_bss_size],
[header.bootinfo.bss_phys, LinkerAddresses.hulk_bss_size],
[header.bootinfo.stack_phys, header.stack_size],
[cast(ulong)header.bootinfo.fb.buffer, header.bootinfo.fb.height * header.bootinfo.fb.stride],
[header.bootinfo.pt_phys, header.bootinfo.pt_size],