[FREELDR]

Fill .bss with 0s at startup. Bug #6523.

svn path=/trunk/; revision=53910
This commit is contained in:
Dmitry Gorbachev 2011-09-30 22:15:08 +00:00
parent 921e734833
commit 1ef964c116

View file

@ -59,6 +59,14 @@ EXTERN(_RealEntryPoint)
call _EnableA20
/* Clean out bss */
xor eax, eax
mov edi, offset __bss_start__
mov ecx, offset __bss_end__ + 3
sub ecx, edi
shr ecx, 2
rep stosd
/* GO! */
push eax
call _BootMain