From 237016c1d0cdcb724bd79ccf23849e4aa7722437 Mon Sep 17 00:00:00 2001 From: Bart Oldeman Date: Wed, 14 Apr 2004 08:50:35 +0000 Subject: [PATCH] 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 --- kernel/main.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/kernel/main.c b/kernel/main.c index 2593fbd..43178a1 100644 --- a/kernel/main.c +++ b/kernel/main.c @@ -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();