switch video mode hack by dropping to real mode to call the video bios works!
[bootcensus] / src / startup.s
index 4e32389..8041c13 100644 (file)
        .extern _bss_end
        .extern pcboot_main
 
+       # move the stack to the top of the conventional memory
+       movl $0x80000, %esp
+
        # zero the BSS section
        xor %eax, %eax
-       mov _bss_start, %edi
-       mov _bss_size, %ecx
+       mov $_bss_start, %edi
+       mov $_bss_size, %ecx
+       cmp $0, %ecx
        jz skip_bss_zero
        shr $4, %ecx
        rep stosl