HELLO: Zero HULK BSS region after mapping it

This commit is contained in:
josh committed 2023-10-21 20:46:27 -04:00
1 parent f7dde241ad
commit bcf1bd3bde
1 file changed
+2
+2
View File
@@ -419,6 +419,8 @@ private bool map_hulk(PageTable * pt_base)
{
return false;
}
/* Zero BSS region. */
memset64(cast(void *)bootinfo().bss_phys, 0u, hulk_bss_size() / 8);
/* Map HULK stack. */
virt = hulk_virt_stack_top() - hulk_stack_size();
if (!map4kregion(virt, bootinfo().stack_phys, hulk_stack_size(), pt_base))