mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
[FREELDR]
Fill .bss with 0s at startup. Bug #6523. svn path=/trunk/; revision=53910
This commit is contained in:
parent
921e734833
commit
1ef964c116
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue