From b89c1b7cd3fc439a5788845df52c0bf4c8fcbc9a Mon Sep 17 00:00:00 2001 From: Bart Oldeman Date: Sun, 23 May 2004 16:30:25 +0000 Subject: [PATCH] Disabled EBDA moves by default. Automatic EBDA moves now happen using switches=/e:-1 git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@945 6ac86273-5f31-0410-b378-82cca8765d1b --- kernel/config.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/kernel/config.c b/kernel/config.c index ae95674..c05f0e8 100644 --- a/kernel/config.c +++ b/kernel/config.c @@ -148,7 +148,7 @@ struct config Config = { , 0 /* amount required memory */ , 0 /* pointer to loaded data */ , 0 /* strategy for command.com is low by default */ - , 0xFFFF /* default value for switches=/E:nnnn */ + , 0 /* default value for switches=/E:nnnn */ }; STATIC seg base_seg BSS_INIT(0); @@ -1115,7 +1115,6 @@ STATIC VOID CfgSwitches(BYTE * pLine) if (!isnum(*pLine)) { pLine--; - Config.ebda2move = 0; break; } pLine = GetNumArg(pLine, &n) - 1; @@ -1123,7 +1122,12 @@ STATIC VOID CfgSwitches(BYTE * pLine) * e.g. AwardBIOS: 48, AMIBIOS: 1024 * (Phoenix, MRBIOS, Unicore = ????) */ - if (n >= 48 && n <= 1024) + if (n == -1) + { + Config.ebda2move = 0xffff; + break; + } + else if (n >= 48 && n <= 1024) { Config.ebda2move = (n + 15) & 0xfff0; break;