Fix EBL GetCurrentIpAddress & GetCurrentMacAddress commands. Add variable services commands. Fix arugment parsing in EBL. All fixes from ARM Ltd.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11290 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
andrewfish
2011-02-01 05:37:22 +00:00
parent 4c8a6e069c
commit fb334ef6c5
7 changed files with 218 additions and 16 deletions

View File

@@ -187,7 +187,7 @@ ParseArguments (
break;
}
// Perform any text coversion here
// Perform any text conversion here
if (*Char == '\t') {
// TAB to space
*Char = ' ';
@@ -205,9 +205,14 @@ ParseArguments (
}
} else {
// Looking for the terminator of an Argv[] entry
if ((InQuote && (*Char == '"')) || (!InQuote && (*Char == ' '))) {
if (!InQuote && (*Char == ' ')) {
*Char = '\0';
LookingForArg = TRUE;
} else if (!InQuote && (*Char == '"') && (*(Char-1) != '\\')) {
InQuote = TRUE;
} else if (InQuote && (*Char == '"') && (*(Char-1) != '\\')) {
*Char = '\0';
InQuote = FALSE;
}
}
}
@@ -597,6 +602,7 @@ EdkBootLoaderEntry (
EblInitializeScriptCmd ();
EblInitializeExternalCmd ();
EblInitializeNetworkCmd();
EblInitializeVariableCmds ();
// Disable the 5 minute EFI watchdog time so we don't get automatically reset
gBS->SetWatchdogTimer (0, 0, 0, NULL);