Author: dgorbachev Date: Fri Sep 30 22:15:08 2011 New Revision: 53910
URL: http://svn.reactos.org/svn/reactos?rev=53910&view=rev Log: [FREELDR] Fill .bss with 0s at startup. Bug #6523.
Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/arch.S
Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/arch.S URL: http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/arch/i... ============================================================================== --- trunk/reactos/boot/freeldr/freeldr/arch/i386/arch.S [iso-8859-1] (original) +++ trunk/reactos/boot/freeldr/freeldr/arch/i386/arch.S [iso-8859-1] Fri Sep 30 22:15:08 2011 @@ -58,6 +58,14 @@ mov byte ptr [_FrldrBootPartition], dh
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