fix: zero .bss before enabling paging to prevent triple fault

Co-authored-by: aider (openrouter/moonshotai/kimi-k2.6) <aider@aider.chat>
This commit is contained in:
2026-05-04 11:28:55 +03:00
parent efcc54ed4b
commit 278a524bbb
+7
View File
@@ -35,6 +35,13 @@ stack_top:
_start:
movl $stack_top, %esp
cld
movl $__bss_start, %edi
movl $__bss_end, %ecx
subl %edi, %ecx
xorl %eax, %eax
rep stosb
movl $pdpt, %eax
orl $0x03, %eax
movl %eax, pml4