X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fstartup.s;h=8041c13d404f7bb8fa1fb8217a2bf11ea568359d;hb=4c7af0d72e32cc07c04345bc9fe57a4a32a29695;hp=4e3238981398839a986ff70867e80c0a7384857a;hpb=d1e8a437c1fab4535f82c4c214ec3330ac32e48d;p=bootcensus diff --git a/src/startup.s b/src/startup.s index 4e32389..8041c13 100644 --- a/src/startup.s +++ b/src/startup.s @@ -21,10 +21,14 @@ .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