Move memset up a little else it would overwrite too much.

git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@881 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
Bart Oldeman 2004-04-14 08:50:35 +00:00
parent 68c3f9ad13
commit 237016c1d0
1 changed files with 3 additions and 5 deletions

View File

@ -79,6 +79,9 @@ VOID ASMCFUNC FreeDOSmain(void)
DosTextSeg = (__segment) & prn_dev;
#endif
/* clear the Init BSS area (what normally the RTL does */
memset(_ib_start, 0, _ib_end - _ib_start);
/* if the kernel has been UPX'ed,
CONFIG info is stored at 50:e2 ..fc
and the bootdrive (passed from BIOS)
@ -112,11 +115,6 @@ VOID ASMCFUNC FreeDOSmain(void)
CheckContinueBootFromHarddisk();
/* clear the Init BSS area (what normally the RTL does */
memset(_ib_start, 0, _ib_end - _ib_start);
signon();
init_kernel();