@retval EFI_OUT_OF_RESOURCES A memory allocation failed.\r
**/\r
EFI_STATUS\r
-EFIAPI\r
MainCommandOpenFile (\r
VOID\r
);\r
@retval EFI_SUCCESS The switch was ok or a warning was presented.\r
**/\r
EFI_STATUS\r
-EFIAPI\r
MainCommandSwitchFileType (\r
VOID\r
);\r
@retval EFI_SUCCESS The operation was successful.\r
**/\r
EFI_STATUS\r
-EFIAPI\r
MainCommandGotoLine (\r
VOID\r
);\r
@retval EFI_LOAD_ERROR A file access error occured.\r
**/\r
EFI_STATUS\r
-EFIAPI\r
MainCommandSaveFile (\r
VOID\r
);\r
@retval EFI_LOAD_ERROR A load error occured.\r
**/\r
EFI_STATUS\r
-EFIAPI\r
MainCommandExit (\r
VOID\r
);\r
@retval EFI_LOAD_ERROR A load error occured.\r
**/\r
EFI_STATUS\r
-EFIAPI\r
MainCommandSearch (\r
VOID\r
);\r
@retval EFI_LOAD_ERROR A load error occured.\r
**/\r
EFI_STATUS\r
-EFIAPI\r
MainCommandSearchReplace (\r
VOID\r
);\r
@retval EFI_LOAD_ERROR A load error occured.\r
**/\r
EFI_STATUS\r
-EFIAPI\r
MainCommandCutLine (\r
VOID\r
);\r
@retval EFI_LOAD_ERROR A load error occured.\r
**/\r
EFI_STATUS\r
-EFIAPI\r
MainCommandPasteLine (\r
VOID\r
);\r
@retval EFI_OUT_OF_RESOURCES A memory allocation failed.\r
**/\r
EFI_STATUS\r
-EFIAPI\r
MainCommandOpenFile (\r
VOID\r
)\r
@retval EFI_SUCCESS The switch was ok or a warning was presented.\r
**/\r
EFI_STATUS\r
-EFIAPI\r
MainCommandSwitchFileType (\r
VOID\r
)\r
@retval EFI_LOAD_ERROR A load error occured.\r
**/\r
EFI_STATUS\r
-EFIAPI\r
MainCommandCutLine (\r
VOID\r
)\r
@retval EFI_LOAD_ERROR A load error occured.\r
**/\r
EFI_STATUS\r
-EFIAPI\r
MainCommandPasteLine (\r
VOID\r
)\r
@retval EFI_LOAD_ERROR A load error occured.\r
**/\r
EFI_STATUS\r
-EFIAPI\r
MainCommandSearch (\r
VOID\r
)\r
@retval EFI_LOAD_ERROR A load error occured.\r
**/\r
EFI_STATUS\r
-EFIAPI\r
MainCommandSearchReplace (\r
VOID\r
)\r
@retval EFI_LOAD_ERROR A load error occured.\r
**/\r
EFI_STATUS\r
-EFIAPI\r
MainCommandExit (\r
VOID\r
)\r
@retval EFI_SUCCESS The operation was successful.\r
**/\r
EFI_STATUS\r
-EFIAPI\r
MainCommandGotoLine (\r
VOID\r
)\r
@retval EFI_LOAD_ERROR A file access error occured.\r
**/\r
EFI_STATUS\r
-EFIAPI\r
MainCommandSaveFile (\r
VOID\r
)\r
} else if ((*Bar & PCI_BIT_1) == 0 && (*Bar & PCI_BIT_2) != 0) {\r
Bar64 = 0x0;\r
CopyMem (&Bar64, Bar, sizeof (UINT64));\r
- ShellPrintHiiEx(-1, -1, NULL,STRING_TOKEN (STR_PCI2_ONE_VAR_2), gShellDebug1HiiHandle, RShiftU64 ((Bar64 & 0xfffffffffffffff0), 32));\r
- ShellPrintHiiEx(-1, -1, NULL,STRING_TOKEN (STR_PCI2_ONE_VAR_3), gShellDebug1HiiHandle, (UINT32) (Bar64 & 0xfffffffffffffff0));\r
+ ShellPrintHiiEx(-1, -1, NULL,STRING_TOKEN (STR_PCI2_ONE_VAR_2), gShellDebug1HiiHandle, RShiftU64 ((Bar64 & 0xfffffffffffffff0ULL), 32));\r
+ ShellPrintHiiEx(-1, -1, NULL,STRING_TOKEN (STR_PCI2_ONE_VAR_3), gShellDebug1HiiHandle, (UINT32) (Bar64 & 0xfffffffffffffff0ULL));\r
ShellPrintHiiEx(-1, -1, NULL,STRING_TOKEN (STR_PCI2_MEM), gShellDebug1HiiHandle);\r
ShellPrintHiiEx(-1, -1, NULL,STRING_TOKEN (STR_PCI2_64_BITS), gShellDebug1HiiHandle);\r
IsBar32 = FALSE;\r
\r
OldBar64 = 0x0;\r
CopyMem (&OldBar64, Bar, sizeof (UINT64));\r
- NewBar64 = 0xffffffffffffffff;\r
+ NewBar64 = 0xffffffffffffffffULL;\r
\r
IoDev->Pci.Write (IoDev, EfiPciWidthUint32, RegAddress, 2, &NewBar64);\r
IoDev->Pci.Read (IoDev, EfiPciWidthUint32, RegAddress, 2, &NewBar64);\r
IoDev->Pci.Write (IoDev, EfiPciWidthUint32, RegAddress, 2, &OldBar64);\r
\r
if (IsMem) {\r
- NewBar64 = NewBar64 & 0xfffffffffffffff0;\r
+ NewBar64 = NewBar64 & 0xfffffffffffffff0ULL;\r
NewBar64 = (~NewBar64) + 1;\r
\r
} else {\r
- NewBar64 = NewBar64 & 0xfffffffffffffffc;\r
+ NewBar64 = NewBar64 & 0xfffffffffffffffcULL;\r
NewBar64 = (~NewBar64) + 1;\r
NewBar64 = NewBar64 & 0x000000000000ffff;\r
}\r
ShellPrintHiiEx(-1, -1, NULL,\r
STRING_TOKEN (STR_PCI2_RSHIFT),\r
gShellDebug1HiiHandle,\r
- RShiftU64 ((NewBar64 + (Bar64 & 0xfffffffffffffff0) - 1), 32)\r
+ RShiftU64 ((NewBar64 + (Bar64 & 0xfffffffffffffff0ULL) - 1), 32)\r
);\r
- ShellPrintHiiEx(-1, -1, NULL,STRING_TOKEN (STR_PCI2_RSHIFT), gShellDebug1HiiHandle, (UINT32) (NewBar64 + (Bar64 & 0xfffffffffffffff0) - 1));\r
+ ShellPrintHiiEx(-1, -1, NULL,STRING_TOKEN (STR_PCI2_RSHIFT), gShellDebug1HiiHandle, (UINT32) (NewBar64 + (Bar64 & 0xfffffffffffffff0ULL) - 1));\r
\r
}\r
} else {\r