mirror of
https://github.com/reactos/reactos.git
synced 2025-04-22 05:00:27 +00:00
Fixed a problem with command line parsing
svn path=/trunk/; revision=1494
This commit is contained in:
parent
66aa4c41db
commit
e4b73aa914
2 changed files with 11 additions and 13 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: kdebug.c,v 1.16 2000/10/22 16:36:50 ekohl Exp $
|
/* $Id: kdebug.c,v 1.17 2001/01/06 21:40:13 rex Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -221,7 +221,7 @@ KdInitSystem (
|
||||||
|
|
||||||
|
|
||||||
/* initialize debug port */
|
/* initialize debug port */
|
||||||
if (KdDebuggerEnabled && KdpDebugType == SerialDebug)
|
if (KdDebuggerEnabled && (KdpDebugType & SerialDebug))
|
||||||
{
|
{
|
||||||
KdPortInitialize (&PortInfo,
|
KdPortInitialize (&PortInfo,
|
||||||
0,
|
0,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: main.c,v 1.70 2000/12/26 05:34:27 dwelch Exp $
|
/* $Id: main.c,v 1.71 2001/01/06 21:40:13 rex Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -442,7 +442,14 @@ _main (ULONG MultiBootMagic, PLOADER_PARAMETER_BLOCK _LoaderBlock)
|
||||||
memcpy (&KeLoaderModules, (PVOID)KeLoaderBlock.ModsAddr,
|
memcpy (&KeLoaderModules, (PVOID)KeLoaderBlock.ModsAddr,
|
||||||
sizeof(LOADER_MODULE) * KeLoaderBlock.ModsCount);
|
sizeof(LOADER_MODULE) * KeLoaderBlock.ModsCount);
|
||||||
KeLoaderBlock.ModsAddr = (ULONG)&KeLoaderModules;
|
KeLoaderBlock.ModsAddr = (ULONG)&KeLoaderModules;
|
||||||
strcpy (KeLoaderCommandLine, (PUCHAR)KeLoaderBlock.CommandLine);
|
|
||||||
|
/*FIXME: Preliminary hack!!!! Add boot device to beginning of command line.
|
||||||
|
* This should be done by the boot loader.
|
||||||
|
*/
|
||||||
|
strcpy (KeLoaderCommandLine,
|
||||||
|
"multi(0)disk(0)rdisk(0)partition(1)\\reactos");
|
||||||
|
strcat (KeLoaderCommandLine, (PUCHAR)KeLoaderBlock.CommandLine);
|
||||||
|
|
||||||
KeLoaderBlock.CommandLine = (ULONG)KeLoaderCommandLine;
|
KeLoaderBlock.CommandLine = (ULONG)KeLoaderCommandLine;
|
||||||
for (i = 0; i < KeLoaderBlock.ModsCount; i++)
|
for (i = 0; i < KeLoaderBlock.ModsCount; i++)
|
||||||
{
|
{
|
||||||
|
@ -454,15 +461,6 @@ _main (ULONG MultiBootMagic, PLOADER_PARAMETER_BLOCK _LoaderBlock)
|
||||||
KeLoaderModules[i].String = (ULONG)KeLoaderModuleStrings[i];
|
KeLoaderModules[i].String = (ULONG)KeLoaderModuleStrings[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
|
|
||||||
* FIXME: Preliminary hack!!!!
|
|
||||||
* Initializes the kernel parameter line.
|
|
||||||
* This should be done by the boot loader.
|
|
||||||
*/
|
|
||||||
strcpy ((PUCHAR)KeLoaderBlock.CommandLine,
|
|
||||||
"multi(0)disk(0)rdisk(0)partition(1)\\reactos /DEBUGPORT=SCREEN");
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Initialization phase 0
|
* Initialization phase 0
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue