ShellPkg: Fix ARM build errors.
submitted-by: Olivier Martin olivier.martin@arm.com> reviewed-by: Jaben Carsey <Jaben.Carsey@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14400 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -13,8 +13,6 @@
|
|||||||
|
|
||||||
#include "Shell.h"
|
#include "Shell.h"
|
||||||
|
|
||||||
STATIC CONST CHAR16 mCrLfString[3] = { CHAR_CARRIAGE_RETURN, CHAR_LINEFEED, CHAR_NULL };
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Install our intermediate ConOut into the system table to
|
Install our intermediate ConOut into the system table to
|
||||||
keep a log of all the info that is displayed to the user.
|
keep a log of all the info that is displayed to the user.
|
||||||
|
@ -22,4 +22,4 @@
|
|||||||
|
|
||||||
extern EFI_GUID gShellAliasGuid;
|
extern EFI_GUID gShellAliasGuid;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -22,4 +22,4 @@
|
|||||||
|
|
||||||
extern EFI_GUID gShellVariableGuid;
|
extern EFI_GUID gShellVariableGuid;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -154,4 +154,4 @@ SHELL_SECURITY_VIOLATION = 26,
|
|||||||
SHELL_NOT_EQUAL = 27
|
SHELL_NOT_EQUAL = 27
|
||||||
}SHELL_STATUS;
|
}SHELL_STATUS;
|
||||||
|
|
||||||
#endif //__SHELL_BASE__
|
#endif //__SHELL_BASE_
|
||||||
|
@ -349,8 +349,8 @@ TxtOutProtocolDumpInformation(
|
|||||||
Temp == NULL?L"":Temp,
|
Temp == NULL?L"":Temp,
|
||||||
Index == Dev->Mode->Mode ? L'*' : L' ',
|
Index == Dev->Mode->Mode ? L'*' : L' ',
|
||||||
Index,
|
Index,
|
||||||
!EFI_ERROR(Status)?Col:-1,
|
!EFI_ERROR(Status)?(INTN)Col:-1,
|
||||||
!EFI_ERROR(Status)?Row:-1
|
!EFI_ERROR(Status)?(INTN)Row:-1
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
FreePool(Temp);
|
FreePool(Temp);
|
||||||
|
@ -300,6 +300,7 @@ FileBufferRestoreMousePosition (
|
|||||||
// backup the old screen attributes
|
// backup the old screen attributes
|
||||||
//
|
//
|
||||||
Orig = MainEditor.ColorAttributes;
|
Orig = MainEditor.ColorAttributes;
|
||||||
|
New.Data = 0;
|
||||||
New.Colors.Foreground = Orig.Colors.Background;
|
New.Colors.Foreground = Orig.Colors.Background;
|
||||||
New.Colors.Background = Orig.Colors.Foreground;
|
New.Colors.Background = Orig.Colors.Foreground;
|
||||||
|
|
||||||
|
@ -149,6 +149,7 @@ InputBarRefresh (
|
|||||||
CursorCol = gST->ConOut->Mode->CursorColumn;
|
CursorCol = gST->ConOut->Mode->CursorColumn;
|
||||||
CursorRow = gST->ConOut->Mode->CursorRow;
|
CursorRow = gST->ConOut->Mode->CursorRow;
|
||||||
Orig.Data = gST->ConOut->Mode->Attribute;
|
Orig.Data = gST->ConOut->Mode->Attribute;
|
||||||
|
New.Data = 0;
|
||||||
New.Colors.Foreground = Orig.Colors.Background;
|
New.Colors.Foreground = Orig.Colors.Background;
|
||||||
New.Colors.Background = Orig.Colors.Foreground;
|
New.Colors.Background = Orig.Colors.Foreground;
|
||||||
|
|
||||||
|
@ -111,6 +111,7 @@ StatusBarRefresh (
|
|||||||
// back up the screen attributes
|
// back up the screen attributes
|
||||||
//
|
//
|
||||||
Orig.Data = gST->ConOut->Mode->Attribute;
|
Orig.Data = gST->ConOut->Mode->Attribute;
|
||||||
|
New.Data = 0;
|
||||||
New.Colors.Foreground = Orig.Colors.Background;
|
New.Colors.Foreground = Orig.Colors.Background;
|
||||||
New.Colors.Background = Orig.Colors.Foreground;
|
New.Colors.Background = Orig.Colors.Foreground;
|
||||||
|
|
||||||
|
@ -107,6 +107,7 @@ MainTitleBarRefresh (
|
|||||||
// backup the old screen attributes
|
// backup the old screen attributes
|
||||||
//
|
//
|
||||||
Orig.Data = gST->ConOut->Mode->Attribute;
|
Orig.Data = gST->ConOut->Mode->Attribute;
|
||||||
|
New.Data = 0;
|
||||||
New.Colors.Foreground = Orig.Colors.Background;
|
New.Colors.Foreground = Orig.Colors.Background;
|
||||||
New.Colors.Background = Orig.Colors.Foreground;
|
New.Colors.Background = Orig.Colors.Foreground;
|
||||||
|
|
||||||
|
@ -580,6 +580,7 @@ HBufferImageRestoreMousePosition (
|
|||||||
// backup the old screen attributes
|
// backup the old screen attributes
|
||||||
//
|
//
|
||||||
Orig = HMainEditor.ColorAttributes;
|
Orig = HMainEditor.ColorAttributes;
|
||||||
|
New.Data = 0;
|
||||||
New.Colors.Foreground = Orig.Colors.Background;
|
New.Colors.Foreground = Orig.Colors.Background;
|
||||||
New.Colors.Background = Orig.Colors.Foreground;
|
New.Colors.Background = Orig.Colors.Foreground;
|
||||||
|
|
||||||
@ -755,6 +756,7 @@ HBufferImageRefresh (
|
|||||||
UINTN Tmp;
|
UINTN Tmp;
|
||||||
|
|
||||||
Orig = HMainEditor.ColorAttributes;
|
Orig = HMainEditor.ColorAttributes;
|
||||||
|
New.Data = 0;
|
||||||
New.Colors.Foreground = Orig.Colors.Background;
|
New.Colors.Foreground = Orig.Colors.Background;
|
||||||
New.Colors.Background = Orig.Colors.Foreground;
|
New.Colors.Background = Orig.Colors.Foreground;
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ typedef struct {
|
|||||||
|
|
||||||
typedef union {
|
typedef union {
|
||||||
HEFI_EDITOR_COLOR_ATTRIBUTES Colors;
|
HEFI_EDITOR_COLOR_ATTRIBUTES Colors;
|
||||||
UINT8 Data;
|
UINTN Data;
|
||||||
} HEFI_EDITOR_COLOR_UNION;
|
} HEFI_EDITOR_COLOR_UNION;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
@ -290,7 +290,6 @@ HMainCommandSaveBuffer (
|
|||||||
// the file won't be saved
|
// the file won't be saved
|
||||||
//
|
//
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
break;
|
|
||||||
|
|
||||||
case L'c':
|
case L'c':
|
||||||
case L'C':
|
case L'C':
|
||||||
|
@ -514,7 +514,6 @@ ShellCmdDriverConfigurationProcessActionRequired (
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
return (EFI_INVALID_PARAMETER);
|
return (EFI_INVALID_PARAMETER);
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
|
@ -166,7 +166,6 @@ TestOperation (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return (FALSE);
|
return (FALSE);
|
||||||
break;
|
|
||||||
case OperatorUnsignedLessThan:
|
case OperatorUnsignedLessThan:
|
||||||
case OperatorLessThan:
|
case OperatorLessThan:
|
||||||
if (ForceStringCompare || !ShellIsHexOrDecimalNumber(Compare1, FALSE, FALSE) || !ShellIsHexOrDecimalNumber(Compare2, FALSE, FALSE)) {
|
if (ForceStringCompare || !ShellIsHexOrDecimalNumber(Compare1, FALSE, FALSE) || !ShellIsHexOrDecimalNumber(Compare2, FALSE, FALSE)) {
|
||||||
@ -202,7 +201,6 @@ TestOperation (
|
|||||||
|
|
||||||
}
|
}
|
||||||
return (FALSE);
|
return (FALSE);
|
||||||
break;
|
|
||||||
case OperatorEqual:
|
case OperatorEqual:
|
||||||
if (ForceStringCompare || !ShellIsHexOrDecimalNumber(Compare1, FALSE, FALSE) || !ShellIsHexOrDecimalNumber(Compare2, FALSE, FALSE)) {
|
if (ForceStringCompare || !ShellIsHexOrDecimalNumber(Compare1, FALSE, FALSE) || !ShellIsHexOrDecimalNumber(Compare2, FALSE, FALSE)) {
|
||||||
//
|
//
|
||||||
@ -230,7 +228,6 @@ TestOperation (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return (FALSE);
|
return (FALSE);
|
||||||
break;
|
|
||||||
case OperatorNotEqual:
|
case OperatorNotEqual:
|
||||||
if (ForceStringCompare || !ShellIsHexOrDecimalNumber(Compare1, FALSE, FALSE) || !ShellIsHexOrDecimalNumber(Compare2, FALSE, FALSE)) {
|
if (ForceStringCompare || !ShellIsHexOrDecimalNumber(Compare1, FALSE, FALSE) || !ShellIsHexOrDecimalNumber(Compare2, FALSE, FALSE)) {
|
||||||
//
|
//
|
||||||
@ -258,7 +255,6 @@ TestOperation (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return (FALSE);
|
return (FALSE);
|
||||||
break;
|
|
||||||
case OperatorUnsignedGreaterOrEqual:
|
case OperatorUnsignedGreaterOrEqual:
|
||||||
case OperatorGreatorOrEqual:
|
case OperatorGreatorOrEqual:
|
||||||
if (ForceStringCompare || !ShellIsHexOrDecimalNumber(Compare1, FALSE, FALSE) || !ShellIsHexOrDecimalNumber(Compare2, FALSE, FALSE)) {
|
if (ForceStringCompare || !ShellIsHexOrDecimalNumber(Compare1, FALSE, FALSE) || !ShellIsHexOrDecimalNumber(Compare2, FALSE, FALSE)) {
|
||||||
@ -293,7 +289,6 @@ TestOperation (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return (FALSE);
|
return (FALSE);
|
||||||
break;
|
|
||||||
case OperatorLessOrEqual:
|
case OperatorLessOrEqual:
|
||||||
case OperatorUnsignedLessOrEqual:
|
case OperatorUnsignedLessOrEqual:
|
||||||
if (ForceStringCompare || !ShellIsHexOrDecimalNumber(Compare1, FALSE, FALSE) || !ShellIsHexOrDecimalNumber(Compare2, FALSE, FALSE)) {
|
if (ForceStringCompare || !ShellIsHexOrDecimalNumber(Compare1, FALSE, FALSE) || !ShellIsHexOrDecimalNumber(Compare2, FALSE, FALSE)) {
|
||||||
@ -328,7 +323,6 @@ TestOperation (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return (FALSE);
|
return (FALSE);
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
ASSERT(FALSE);
|
ASSERT(FALSE);
|
||||||
return (FALSE);
|
return (FALSE);
|
||||||
|
@ -667,7 +667,7 @@ CheckAndSetTimeZone (
|
|||||||
if (*Walker == L'-') {
|
if (*Walker == L'-') {
|
||||||
TheTime.TimeZone = (INT16)((ShellStrToUintn (++Walker)) * 60);
|
TheTime.TimeZone = (INT16)((ShellStrToUintn (++Walker)) * 60);
|
||||||
} else {
|
} else {
|
||||||
TheTime.TimeZone = (INT16)((ShellStrToUintn (Walker)) * -60);
|
TheTime.TimeZone = (INT16)((INT16)(ShellStrToUintn (Walker)) * -60);
|
||||||
}
|
}
|
||||||
if (Walker2 != NULL) {
|
if (Walker2 != NULL) {
|
||||||
Walker = Walker2 + 1;
|
Walker = Walker2 + 1;
|
||||||
|
Reference in New Issue
Block a user