X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fstartup.s;h=8041c13d404f7bb8fa1fb8217a2bf11ea568359d;hb=4c7af0d72e32cc07c04345bc9fe57a4a32a29695;hp=bff3991ff9e631fab41b2b4b419a3a68eba1f006;hpb=559dd7c3c836a69eac46bd12c7ef61bb5de8882c;p=bootcensus diff --git a/src/startup.s b/src/startup.s index bff3991..8041c13 100644 --- a/src/startup.s +++ b/src/startup.s @@ -19,17 +19,28 @@ .extern _bss_start .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 skip_bss_zero: + call pcboot_main + # pcboot_main never returns +0: cli + hlt + jmp 0b + .global logohack logohack: # copy palette mov $logo_pal, %esi