Add HULK header; map virtual memory for HULK bss section

This commit is contained in:
josh committed 2022-03-21 16:31:01 -04:00
1 parent c58284761a
commit 15559b0a56
5 files changed
+59 -20

No files matched your search

+9 -1
View File
@@ -3,16 +3,24 @@
*/
module hulk.hulk;
import hulk.header;
import hulk.bootinfo;
import hos.memory;
import ldc.attributes;
extern extern(C) __gshared ubyte _hulk_total_size;
@(ldc.attributes.section(".hulk_header"))
private __gshared Header hulk_header = {
&_hulk_total_size,
&hulk_start,
};
/**
* HULK entry point.
*
* @param bootinfo Pointer to HULK boot information structure.
*/
@(ldc.attributes.section(".hulk_start"))
extern(C) void hulk_start(ulong rdi, ulong rsi, ulong rdx, BootInfo * bootinfo)
{
for (size_t y = 100u; y < 120u; y++)