\r
**/\r
\r
-#ifndef _DISK_IO_H\r
-#define _DISK_IO_H\r
+#ifndef _DISK_IO_H_\r
+#define _DISK_IO_H_\r
\r
#include <Uefi.h>\r
#include <Protocol/BlockIo.h>\r
EFI_STATUS\r
EFIAPI\r
DiskIoDriverBindingSupported (\r
- IN EFI_DRIVER_BINDING_PROTOCOL *This,\r
- IN EFI_HANDLE ControllerHandle,\r
- IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath\r
+ IN EFI_DRIVER_BINDING_PROTOCOL *This,\r
+ IN EFI_HANDLE ControllerHandle,\r
+ IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath OPTIONAL\r
);\r
\r
/**\r
EFI_STATUS\r
EFIAPI\r
DiskIoDriverBindingStart (\r
- IN EFI_DRIVER_BINDING_PROTOCOL *This,\r
- IN EFI_HANDLE ControllerHandle,\r
- IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath\r
+ IN EFI_DRIVER_BINDING_PROTOCOL *This,\r
+ IN EFI_HANDLE ControllerHandle,\r
+ IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath OPTIONAL\r
);\r
\r
/**\r
Check += CheckBuffer[Index];\r
}\r
\r
- if (Check & 0xFFFF) {\r
+ if ((Check & 0xFFFF) != 0) {\r
DEBUG ((EFI_D_ERROR, "EltCheckBootCatalog: El Torito boot catalog header checksum failed\n"));\r
continue;\r
}\r
\r
\r
/**\r
- Restore Partition Table to its alternate place\r
+ Restore Partition Table to its alternate place.\r
(Primary -> Backup or Backup -> Primary)\r
\r
@param[in] PartHeader Partition table header structure\r
\r
\r
/**\r
- Checks the CRC32 value in the table header\r
+ Checks the CRC32 value in the table header.\r
\r
@param MaxSize Max Size limit\r
@param Size The size of the table\r
\r
\r
/**\r
- Checks the CRC32 value in the table header\r
+ Checks the CRC32 value in the table header.\r
\r
@param MaxSize Max Size limit\r
@param Hdr Table to check\r
\r
\r
/**\r
- Updates the CRC32 value in the table header\r
+ Updates the CRC32 value in the table header.\r
\r
@param Size The size of the table\r
@param Hdr Table to update\r
\r
\r
/**\r
- Updates the CRC32 value in the table header\r
+ Updates the CRC32 value in the table header.\r
\r
@param Hdr Table to update\r
\r
\r
\r
/**\r
- Restore Partition Table to its alternate place\r
+ Restore Partition Table to its alternate place.\r
(Primary -> Backup or Backup -> Primary)\r
\r
@param[in] PartHeader Partition table header structure\r
\r
\r
/**\r
- Updates the CRC32 value in the table header\r
+ Updates the CRC32 value in the table header.\r
\r
@param Hdr Table to update\r
\r
\r
\r
/**\r
- Updates the CRC32 value in the table header\r
+ Updates the CRC32 value in the table header.\r
\r
@param Size The size of the table\r
@param Hdr Table to update\r
IN UINTN Size,\r
IN OUT EFI_TABLE_HEADER *Hdr\r
)\r
-\r
{\r
UINT32 Crc;\r
\r
\r
\r
/**\r
- Checks the CRC32 value in the table header\r
+ Checks the CRC32 value in the table header.\r
\r
@param MaxSize Max Size limit\r
@param Hdr Table to check\r
\r
\r
/**\r
- Checks the CRC32 value in the table header\r
+ Checks the CRC32 value in the table header.\r
\r
@param MaxSize Max Size limit\r
@param Size The size of the table\r
return FALSE;\r
}\r
\r
- if (MaxSize && Size > MaxSize) {\r
+ if ((MaxSize != 0) && (Size > MaxSize)) {\r
DEBUG ((EFI_D_ERROR, "CheckCrc32: Size > MaxSize\n"));\r
return FALSE;\r
}\r
}\r
}\r
//\r
- // Non of the regions overlapped so MBR is O.K.\r
+ // None of the regions overlapped so MBR is O.K.\r
//\r
return MbrValid;\r
}\r
\r
**/\r
\r
-#ifndef _PARTITION_H \r
-#define _PARTITION_H \r
+#ifndef _PARTITION_H_ \r
+#define _PARTITION_H_ \r
\r
#include <Uefi.h>\r
#include <Protocol/BlockIo.h>\r
EFI_STATUS\r
EFIAPI\r
PartitionDriverBindingStop (\r
- IN EFI_DRIVER_BINDING_PROTOCOL *This,\r
- IN EFI_HANDLE ControllerHandle,\r
- IN UINTN NumberOfChildren,\r
- IN EFI_HANDLE *ChildHandleBuffer\r
+ IN EFI_DRIVER_BINDING_PROTOCOL *This,\r
+ IN EFI_HANDLE ControllerHandle,\r
+ IN UINTN NumberOfChildren,\r
+ IN EFI_HANDLE *ChildHandleBuffer\r
);\r
\r
//\r
IN EFI_BLOCK_IO_PROTOCOL *ParentBlockIo,\r
IN EFI_DEVICE_PATH_PROTOCOL *ParentDevicePath,\r
IN EFI_DEVICE_PATH_PROTOCOL *DevicePathNode,\r
- IN UINT64 Start,\r
- IN UINT64 End,\r
+ IN EFI_LBA Start,\r
+ IN EFI_LBA End,\r
IN UINT32 BlockSize,\r
IN BOOLEAN InstallEspGuid\r
- )\r
-;\r
+ );\r
\r
/**\r
Install child handles if the Handle supports GPT partition structure.\r
IN EFI_DISK_IO_PROTOCOL *DiskIo,\r
IN EFI_BLOCK_IO_PROTOCOL *BlockIo,\r
IN EFI_DEVICE_PATH_PROTOCOL *DevicePath\r
- )\r
-;\r
+ );\r
\r
/**\r
Install child handles if the Handle supports El Torito format.\r
IN EFI_DISK_IO_PROTOCOL *DiskIo,\r
IN EFI_BLOCK_IO_PROTOCOL *BlockIo,\r
IN EFI_DEVICE_PATH_PROTOCOL *DevicePath\r
- )\r
-;\r
+ );\r
\r
/**\r
Install child handles if the Handle supports MBR format.\r
IN EFI_DISK_IO_PROTOCOL *DiskIo,\r
IN EFI_BLOCK_IO_PROTOCOL *BlockIo,\r
IN EFI_DEVICE_PATH_PROTOCOL *DevicePath\r
- )\r
-;\r
+ );\r
\r
typedef\r
EFI_STATUS\r
}\r
}\r
\r
- for (Index = 0; mOtherChars[Index]; Index++) {\r
+ for (Index = 0; mOtherChars[Index] != 0; Index++) {\r
Index2 = mOtherChars[Index];\r
mEngInfoMap[Index2] |= CHAR_FAT_VALID;\r
}\r
IN CHAR16 *Str2\r
)\r
{\r
- while (*Str1) {\r
- if (ToUpper (*Str1) != ToUpper (*Str2)) {\r
+ while (*Str1 != 0) {\r
+ if (TO_UPPER (*Str1) != TO_UPPER (*Str2)) {\r
break;\r
}\r
\r
Str2 += 1;\r
}\r
\r
- return ToUpper (*Str1) - ToUpper (*Str2);\r
+ return TO_UPPER (*Str1) - TO_UPPER (*Str2);\r
}\r
\r
\r
IN OUT CHAR16 *Str\r
)\r
{\r
- while (*Str) {\r
- *Str = ToLower (*Str);\r
+ while (*Str != 0) {\r
+ *Str = TO_LOWER (*Str);\r
Str += 1;\r
}\r
}\r
IN OUT CHAR16 *Str\r
)\r
{\r
- while (*Str) {\r
- *Str = ToUpper (*Str);\r
+ while (*Str != 0) {\r
+ *Str = TO_UPPER (*Str);\r
Str += 1;\r
}\r
}\r
//\r
// End of pattern. If end of string, TRUE match\r
//\r
- if (*String) {\r
+ if (*String != 0) {\r
return FALSE;\r
} else {\r
return TRUE;\r
//\r
// Match zero or more chars\r
//\r
- while (*String) {\r
+ while (*String != 0) {\r
if (EngMetaiMatch (This, String, Pattern)) {\r
return TRUE;\r
}\r
//\r
// Match any one char\r
//\r
- if (!*String) {\r
+ if (*String == 0) {\r
return FALSE;\r
}\r
\r
// Match char set\r
//\r
CharC = *String;\r
- if (!CharC) {\r
+ if (CharC == 0) {\r
//\r
// syntax problem\r
//\r
\r
Index3 = 0;\r
CharP = *Pattern++;\r
- while (CharP) {\r
+ while (CharP != 0) {\r
if (CharP == ']') {\r
return FALSE;\r
}\r
return FALSE;\r
}\r
\r
- if (ToUpper (CharC) >= ToUpper (Index3) && ToUpper (CharC) <= ToUpper (CharP)) {\r
+ if (TO_UPPER (CharC) >= TO_UPPER (Index3) && TO_UPPER (CharC) <= TO_UPPER (CharP)) {\r
//\r
// if in range, it's a match\r
//\r
}\r
\r
Index3 = CharP;\r
- if (ToUpper (CharC) == ToUpper (CharP)) {\r
+ if (TO_UPPER (CharC) == TO_UPPER (CharP)) {\r
//\r
// if char matches\r
//\r
//\r
// skip to end of match char set\r
//\r
- while (CharP && CharP != ']') {\r
+ while ((CharP != 0) && (CharP != ']')) {\r
CharP = *Pattern;\r
Pattern += 1;\r
}\r
\r
default:\r
CharC = *String;\r
- if (ToUpper (CharC) != ToUpper (CharP)) {\r
+ if (TO_UPPER (CharC) != TO_UPPER (CharP)) {\r
return FALSE;\r
}\r
\r
//\r
// No DBCS issues, just expand and add null terminate to end of string\r
//\r
- while (*Fat && FatSize) {\r
+ while ((*Fat != 0) && (FatSize != 0)) {\r
*String = *Fat;\r
String += 1;\r
Fat += 1;\r
BOOLEAN SpecialCharExist;\r
\r
SpecialCharExist = FALSE;\r
- while (*String && FatSize) {\r
+ while ((*String != 0) && (FatSize != 0)) {\r
//\r
// Skip '.' or ' ' when making a fat name\r
//\r
// If this is a valid fat char, move it.\r
// Otherwise, move a '_' and flag the fact that the name needs an Lfn\r
//\r
- if (*String < 0x100 && (mEngInfoMap[*String] & CHAR_FAT_VALID)) {\r
+ if (*String < 0x100 && ((mEngInfoMap[*String] & CHAR_FAT_VALID) != 0)) {\r
*Fat = mEngUpperMap[*String];\r
} else {\r
*Fat = '_';\r
\r
**/\r
\r
-#ifndef _UNICODE_COLLATION_ENG_H\r
-#define _UNICODE_COLLATION_ENG_H\r
+#ifndef _UNICODE_COLLATION_ENG_H_\r
+#define _UNICODE_COLLATION_ENG_H_\r
\r
\r
\r
//\r
#define CHAR_FAT_VALID 0x01\r
\r
-#define ToUpper(a) (CHAR16) (a <= 0xFF ? mEngUpperMap[a] : a)\r
-#define ToLower(a) (CHAR16) (a <= 0xFF ? mEngLowerMap[a] : a)\r
+#define TO_UPPER(a) (CHAR16) (a <= 0xFF ? mEngUpperMap[a] : a)\r
+#define TO_LOWER(a) (CHAR16) (a <= 0xFF ? mEngLowerMap[a] : a)\r
\r
//\r
// Prototypes\r
INTN\r
EFIAPI\r
EngStriColl (\r
- IN EFI_UNICODE_COLLATION_PROTOCOL *This,\r
- IN CHAR16 *Str1,\r
- IN CHAR16 *Str2\r
- )\r
-;\r
+ IN EFI_UNICODE_COLLATION_PROTOCOL *This,\r
+ IN CHAR16 *Str1,\r
+ IN CHAR16 *Str2\r
+ );\r
\r
/**\r
Performs a case-insensitive comparison of a Null-terminated Unicode \r
BOOLEAN\r
EFIAPI\r
EngMetaiMatch (\r
- IN EFI_UNICODE_COLLATION_PROTOCOL *This,\r
- IN CHAR16 *String,\r
- IN CHAR16 *Pattern\r
- )\r
-;\r
+ IN EFI_UNICODE_COLLATION_PROTOCOL *This,\r
+ IN CHAR16 *String,\r
+ IN CHAR16 *Pattern\r
+ );\r
\r
/**\r
Converts all the Unicode characters in a Null-terminated Unicode string to \r
VOID\r
EFIAPI\r
EngStrLwr (\r
- IN EFI_UNICODE_COLLATION_PROTOCOL *This,\r
- IN OUT CHAR16 *Str\r
- )\r
-;\r
+ IN EFI_UNICODE_COLLATION_PROTOCOL *This,\r
+ IN OUT CHAR16 *Str\r
+ );\r
\r
/**\r
Converts all the Unicode characters in a Null-terminated Unicode string to upper\r
VOID\r
EFIAPI\r
EngStrUpr (\r
- IN EFI_UNICODE_COLLATION_PROTOCOL *This,\r
- IN OUT CHAR16 *Str\r
- )\r
-;\r
+ IN EFI_UNICODE_COLLATION_PROTOCOL *This,\r
+ IN OUT CHAR16 *Str\r
+ );\r
\r
/**\r
Converts an 8.3 FAT file name in an OEM character set to a Null-terminated \r
VOID\r
EFIAPI\r
EngFatToStr (\r
- IN EFI_UNICODE_COLLATION_PROTOCOL *This,\r
- IN UINTN FatSize,\r
- IN CHAR8 *Fat,\r
- OUT CHAR16 *String\r
- )\r
-;\r
+ IN EFI_UNICODE_COLLATION_PROTOCOL *This,\r
+ IN UINTN FatSize,\r
+ IN CHAR8 *Fat,\r
+ OUT CHAR16 *String\r
+ );\r
\r
/**\r
Converts a Null-terminated Unicode string to legal characters in a FAT \r
BOOLEAN\r
EFIAPI\r
EngStrToFat (\r
- IN EFI_UNICODE_COLLATION_PROTOCOL *This,\r
- IN CHAR16 *String,\r
- IN UINTN FatSize,\r
- OUT CHAR8 *Fat\r
- )\r
-;\r
+ IN EFI_UNICODE_COLLATION_PROTOCOL *This,\r
+ IN CHAR16 *String,\r
+ IN UINTN FatSize,\r
+ OUT CHAR8 *Fat\r
+ );\r
\r
/**\r
The user Entry Point for English module.\r
InitializeUnicodeCollationEng (\r
IN EFI_HANDLE ImageHandle,\r
IN EFI_SYSTEM_TABLE *SystemTable\r
- )\r
-;\r
+ );\r
\r
#endif\r
+\r
STATIC\r
INT16\r
VmReadIndex16 (\r
- IN VM_CONTEXT *VmPtr,\r
- IN UINT32 CodeOffset\r
+ IN VM_CONTEXT *VmPtr,\r
+ IN UINT32 CodeOffset\r
);\r
\r
/**\r
STATIC\r
INT32\r
VmReadIndex32 (\r
- IN VM_CONTEXT *VmPtr,\r
- IN UINT32 CodeOffset\r
+ IN VM_CONTEXT *VmPtr,\r
+ IN UINT32 CodeOffset\r
);\r
\r
/**\r
STATIC\r
INT64\r
VmReadIndex64 (\r
- IN VM_CONTEXT *VmPtr,\r
- IN UINT32 CodeOffset\r
+ IN VM_CONTEXT *VmPtr,\r
+ IN UINT32 CodeOffset\r
);\r
\r
/**\r
STATIC\r
UINT8\r
VmReadMem8 (\r
- IN VM_CONTEXT *VmPtr,\r
- IN UINTN Addr\r
+ IN VM_CONTEXT *VmPtr,\r
+ IN UINTN Addr\r
);\r
\r
/**\r
STATIC\r
UINT64\r
VmReadMem64 (\r
- IN VM_CONTEXT *VmPtr,\r
- IN UINTN Addr\r
+ IN VM_CONTEXT *VmPtr,\r
+ IN UINTN Addr\r
);\r
\r
/**\r
STATIC\r
UINTN\r
VmReadMemN (\r
- IN VM_CONTEXT *VmPtr,\r
- IN UINTN Addr\r
+ IN VM_CONTEXT *VmPtr,\r
+ IN UINTN Addr\r
);\r
\r
/**\r
STATIC\r
EFI_STATUS\r
VmWriteMem8 (\r
- IN VM_CONTEXT *VmPtr,\r
- IN UINTN Addr,\r
- IN UINT8 Data\r
+ IN VM_CONTEXT *VmPtr,\r
+ IN UINTN Addr,\r
+ IN UINT8 Data\r
);\r
\r
/**\r
STATIC\r
EFI_STATUS\r
VmWriteMem16 (\r
- IN VM_CONTEXT *VmPtr,\r
- IN UINTN Addr,\r
- IN UINT16 Data\r
+ IN VM_CONTEXT *VmPtr,\r
+ IN UINTN Addr,\r
+ IN UINT16 Data\r
);\r
\r
/**\r
STATIC\r
EFI_STATUS\r
VmWriteMem32 (\r
- IN VM_CONTEXT *VmPtr,\r
- IN UINTN Addr,\r
- IN UINT32 Data\r
+ IN VM_CONTEXT *VmPtr,\r
+ IN UINTN Addr,\r
+ IN UINT32 Data\r
);\r
\r
/**\r
STATIC\r
UINTN\r
ConvertStackAddr (\r
- IN VM_CONTEXT *VmPtr,\r
- IN UINTN Addr\r
+ IN VM_CONTEXT *VmPtr,\r
+ IN UINTN Addr\r
);\r
\r
/**\r
STATIC\r
EFI_STATUS\r
ExecuteSignedDataManip (\r
- IN VM_CONTEXT *VmPtr\r
+ IN VM_CONTEXT *VmPtr\r
);\r
\r
/**\r
STATIC\r
EFI_STATUS\r
ExecuteUnsignedDataManip (\r
- IN VM_CONTEXT *VmPtr\r
+ IN VM_CONTEXT *VmPtr\r
);\r
\r
/**\r
STATIC\r
UINT64\r
ExecuteNOT (\r
- IN VM_CONTEXT *VmPtr,\r
- IN UINT64 Op1,\r
- IN UINT64 Op2\r
+ IN VM_CONTEXT *VmPtr,\r
+ IN UINT64 Op1,\r
+ IN UINT64 Op2\r
);\r
\r
/**\r
STATIC\r
UINT64\r
ExecuteNEG (\r
- IN VM_CONTEXT *VmPtr,\r
- IN UINT64 Op1,\r
- IN UINT64 Op2\r
+ IN VM_CONTEXT *VmPtr,\r
+ IN UINT64 Op1,\r
+ IN UINT64 Op2\r
);\r
\r
/**\r
STATIC\r
UINT64\r
ExecuteADD (\r
- IN VM_CONTEXT *VmPtr,\r
- IN UINT64 Op1,\r
- IN UINT64 Op2\r
+ IN VM_CONTEXT *VmPtr,\r
+ IN UINT64 Op1,\r
+ IN UINT64 Op2\r
);\r
\r
/**\r
STATIC\r
UINT64\r
ExecuteSUB (\r
- IN VM_CONTEXT *VmPtr,\r
- IN UINT64 Op1,\r
- IN UINT64 Op2\r
+ IN VM_CONTEXT *VmPtr,\r
+ IN UINT64 Op1,\r
+ IN UINT64 Op2\r
);\r
\r
/**\r
STATIC\r
UINT64\r
ExecuteMUL (\r
- IN VM_CONTEXT *VmPtr,\r
- IN UINT64 Op1,\r
- IN UINT64 Op2\r
+ IN VM_CONTEXT *VmPtr,\r
+ IN UINT64 Op1,\r
+ IN UINT64 Op2\r
);\r
\r
/**\r
STATIC\r
UINT64\r
ExecuteMULU (\r
- IN VM_CONTEXT *VmPtr,\r
- IN UINT64 Op1,\r
- IN UINT64 Op2\r
+ IN VM_CONTEXT *VmPtr,\r
+ IN UINT64 Op1,\r
+ IN UINT64 Op2\r
);\r
\r
/**\r
STATIC\r
UINT64\r
ExecuteDIV (\r
- IN VM_CONTEXT *VmPtr,\r
- IN UINT64 Op1,\r
- IN UINT64 Op2\r
+ IN VM_CONTEXT *VmPtr,\r
+ IN UINT64 Op1,\r
+ IN UINT64 Op2\r
);\r
\r
/**\r
STATIC\r
UINT64\r
ExecuteDIVU (\r
- IN VM_CONTEXT *VmPtr,\r
- IN UINT64 Op1,\r
- IN UINT64 Op2\r
+ IN VM_CONTEXT *VmPtr,\r
+ IN UINT64 Op1,\r
+ IN UINT64 Op2\r
);\r
\r
/**\r
STATIC\r
UINT64\r
ExecuteMOD (\r
- IN VM_CONTEXT *VmPtr,\r
- IN UINT64 Op1,\r
- IN UINT64 Op2\r
+ IN VM_CONTEXT *VmPtr,\r
+ IN UINT64 Op1,\r
+ IN UINT64 Op2\r
);\r
\r
/**\r
STATIC\r
UINT64\r
ExecuteMODU (\r
- IN VM_CONTEXT *VmPtr,\r
- IN UINT64 Op1,\r
- IN UINT64 Op2\r
+ IN VM_CONTEXT *VmPtr,\r
+ IN UINT64 Op1,\r
+ IN UINT64 Op2\r
);\r
\r
/**\r
STATIC\r
UINT64\r
ExecuteAND (\r
- IN VM_CONTEXT *VmPtr,\r
- IN UINT64 Op1,\r
- IN UINT64 Op2\r
+ IN VM_CONTEXT *VmPtr,\r
+ IN UINT64 Op1,\r
+ IN UINT64 Op2\r
);\r
\r
/**\r
STATIC\r
UINT64\r
ExecuteOR (\r
- IN VM_CONTEXT *VmPtr,\r
- IN UINT64 Op1,\r
- IN UINT64 Op2\r
+ IN VM_CONTEXT *VmPtr,\r
+ IN UINT64 Op1,\r
+ IN UINT64 Op2\r
);\r
\r
/**\r
STATIC\r
UINT64\r
ExecuteXOR (\r
- IN VM_CONTEXT *VmPtr,\r
- IN UINT64 Op1,\r
- IN UINT64 Op2\r
+ IN VM_CONTEXT *VmPtr,\r
+ IN UINT64 Op1,\r
+ IN UINT64 Op2\r
);\r
\r
/**\r
STATIC\r
UINT64\r
ExecuteSHL (\r
- IN VM_CONTEXT *VmPtr,\r
- IN UINT64 Op1,\r
- IN UINT64 Op2\r
+ IN VM_CONTEXT *VmPtr,\r
+ IN UINT64 Op1,\r
+ IN UINT64 Op2\r
);\r
\r
/**\r
STATIC\r
UINT64\r
ExecuteSHR (\r
- IN VM_CONTEXT *VmPtr,\r
- IN UINT64 Op1,\r
- IN UINT64 Op2\r
+ IN VM_CONTEXT *VmPtr,\r
+ IN UINT64 Op1,\r
+ IN UINT64 Op2\r
);\r
\r
/**\r
STATIC\r
UINT64\r
ExecuteASHR (\r
- IN VM_CONTEXT *VmPtr,\r
- IN UINT64 Op1,\r
- IN UINT64 Op2\r
+ IN VM_CONTEXT *VmPtr,\r
+ IN UINT64 Op1,\r
+ IN UINT64 Op2\r
);\r
\r
/**\r
STATIC\r
UINT64\r
ExecuteEXTNDB (\r
- IN VM_CONTEXT *VmPtr,\r
- IN UINT64 Op1,\r
- IN UINT64 Op2\r
+ IN VM_CONTEXT *VmPtr,\r
+ IN UINT64 Op1,\r
+ IN UINT64 Op2\r
);\r
\r
/**\r
STATIC\r
UINT64\r
ExecuteEXTNDW (\r
- IN VM_CONTEXT *VmPtr,\r
- IN UINT64 Op1,\r
- IN UINT64 Op2\r
+ IN VM_CONTEXT *VmPtr,\r
+ IN UINT64 Op1,\r
+ IN UINT64 Op2\r
);\r
\r
/**\r
STATIC\r
UINT64\r
ExecuteEXTNDD (\r
- IN VM_CONTEXT *VmPtr,\r
- IN UINT64 Op1,\r
- IN UINT64 Op2\r
+ IN VM_CONTEXT *VmPtr,\r
+ IN UINT64 Op1,\r
+ IN UINT64 Op2\r
);\r
\r
//\r
EFI_STATUS\r
EbcExecute (\r
IN VM_CONTEXT *VmPtr\r
- )\r
-;\r
+ );\r
\r
\r
\r
UINT64\r
GetVmVersion (\r
VOID\r
- )\r
-;\r
+ );\r
\r
/**\r
Writes UINTN data to memory address.\r
IN VM_CONTEXT *VmPtr,\r
IN UINTN Addr,\r
IN UINTN Data\r
- )\r
-;\r
+ );\r
\r
/**\r
Writes 64-bit data to memory address.\r
**/\r
EFI_STATUS\r
VmWriteMem64 (\r
- IN VM_CONTEXT *VmPtr,\r
- UINTN Addr,\r
- IN UINT64 Data\r
- )\r
-;\r
+ IN VM_CONTEXT *VmPtr,\r
+ IN UINTN Addr,\r
+ IN UINT64 Data\r
+ );\r
\r
//\r
// Define a protocol for an EBC VM test interface.\r
IN EFI_EBC_VM_TEST_PROTOCOL *This,\r
IN VM_CONTEXT *VmPtr,\r
IN OUT UINTN *InstructionCount\r
- )\r
-;\r
+ );\r
\r
#endif // ifndef _EBC_EXECUTE_H_\r
EFI_STATUS\r
EFIAPI\r
EbcUnloadImage (\r
- IN EFI_EBC_PROTOCOL *This,\r
- IN EFI_HANDLE ImageHandle\r
+ IN EFI_EBC_PROTOCOL *This,\r
+ IN EFI_HANDLE ImageHandle\r
);\r
\r
/**\r
EFI_STATUS\r
EFIAPI\r
EbcCreateThunk (\r
- IN EFI_EBC_PROTOCOL *This,\r
- IN EFI_HANDLE ImageHandle,\r
- IN VOID *EbcEntryPoint,\r
- OUT VOID **Thunk\r
+ IN EFI_EBC_PROTOCOL *This,\r
+ IN EFI_HANDLE ImageHandle,\r
+ IN VOID *EbcEntryPoint,\r
+ OUT VOID **Thunk\r
);\r
\r
/**\r
EFI_STATUS\r
EFIAPI\r
EbcGetVersion (\r
- IN EFI_EBC_PROTOCOL *This,\r
- IN OUT UINT64 *Version\r
+ IN EFI_EBC_PROTOCOL *This,\r
+ IN OUT UINT64 *Version\r
);\r
\r
/**\r
STATIC\r
EFI_STATUS\r
InitEbcVmTestProtocol (\r
- IN EFI_HANDLE *Handle\r
+ IN EFI_HANDLE *IHandle\r
);\r
\r
/**\r
EFI_STATUS\r
EFIAPI\r
EbcRegisterICacheFlush (\r
- IN EFI_EBC_PROTOCOL *This,\r
- IN EBC_ICACHE_FLUSH Flush\r
+ IN EFI_EBC_PROTOCOL *This,\r
+ IN EBC_ICACHE_FLUSH Flush\r
);\r
\r
/**\r
EFI_STATUS\r
EFIAPI\r
EbcDebugGetMaximumProcessorIndex (\r
- IN EFI_DEBUG_SUPPORT_PROTOCOL *This,\r
- OUT UINTN *MaxProcessorIndex\r
+ IN EFI_DEBUG_SUPPORT_PROTOCOL *This,\r
+ OUT UINTN *MaxProcessorIndex\r
);\r
\r
/**\r
EFI_STATUS\r
EFIAPI\r
EbcDebugRegisterPeriodicCallback (\r
- IN EFI_DEBUG_SUPPORT_PROTOCOL *This,\r
- IN UINTN ProcessorIndex,\r
- IN EFI_PERIODIC_CALLBACK PeriodicCallback\r
+ IN EFI_DEBUG_SUPPORT_PROTOCOL *This,\r
+ IN UINTN ProcessorIndex,\r
+ IN EFI_PERIODIC_CALLBACK PeriodicCallback\r
);\r
\r
/**\r
EFI_STATUS\r
EFIAPI\r
EbcDebugRegisterExceptionCallback (\r
- IN EFI_DEBUG_SUPPORT_PROTOCOL *This,\r
- IN UINTN ProcessorIndex,\r
- IN EFI_EXCEPTION_CALLBACK ExceptionCallback,\r
- IN EFI_EXCEPTION_TYPE ExceptionType\r
+ IN EFI_DEBUG_SUPPORT_PROTOCOL *This,\r
+ IN UINTN ProcessorIndex,\r
+ IN EFI_EXCEPTION_CALLBACK ExceptionCallback,\r
+ IN EFI_EXCEPTION_TYPE ExceptionType\r
);\r
\r
/**\r
EFI_STATUS\r
EFIAPI\r
EbcDebugInvalidateInstructionCache (\r
- IN EFI_DEBUG_SUPPORT_PROTOCOL *This,\r
- IN UINTN ProcessorIndex,\r
- IN VOID *Start,\r
- IN UINT64 Length\r
+ IN EFI_DEBUG_SUPPORT_PROTOCOL *This,\r
+ IN UINTN ProcessorIndex,\r
+ IN VOID *Start,\r
+ IN UINT64 Length\r
);\r
\r
//\r
IN EFI_HANDLE ImageHandle,\r
IN VOID *EbcEntryPoint,\r
OUT VOID **Thunk,\r
- IN UINT32 Flags\r
- )\r
-;\r
+ IN UINT32 Flags\r
+ );\r
\r
/**\r
Add a thunk to our list of thunks for a given image handle.\r
**/\r
EFI_STATUS\r
EbcAddImageThunk (\r
- IN EFI_HANDLE ImageHandle,\r
- IN VOID *ThunkBuffer,\r
- IN UINT32 ThunkSize\r
- )\r
-;\r
+ IN EFI_HANDLE ImageHandle,\r
+ IN VOID *ThunkBuffer,\r
+ IN UINT32 ThunkSize\r
+ );\r
\r
//\r
// The interpreter calls these when an exception is detected,\r
**/\r
EFI_STATUS\r
EbcDebugSignalException (\r
- IN EFI_EXCEPTION_TYPE ExceptionType,\r
- IN EXCEPTION_FLAGS ExceptionFlags,\r
- IN VM_CONTEXT *VmPtr\r
- )\r
-;\r
+ IN EFI_EXCEPTION_TYPE ExceptionType,\r
+ IN EXCEPTION_FLAGS ExceptionFlags,\r
+ IN VM_CONTEXT *VmPtr\r
+ );\r
\r
//\r
// Define a constant of how often to call the debugger periodic callback\r
//\r
// External low level functions that are native-processor dependent\r
// \r
-/** \r
+/**\r
The VM thunk code stuffs an EBC entry point into a processor \r
register. Since we can't use inline assembly to get it from\r
the interpreter C code, stuff it into the return value\r
register and return.\r
\r
@return The contents of the register in which the entry point is passed.\r
- \r
-**/ \r
+\r
+**/\r
UINTN\r
EFIAPI\r
EbcLLGetEbcEntryPoint (\r
VOID\r
- )\r
-;\r
+ );\r
\r
/**\r
Returns the caller's value of the stack pointer.\r
We adjust it by 4 here because when they called us, the return address\r
is put on the stack, thereby lowering it by 4 bytes.\r
\r
- @return The current value of the stack pointer for the caller. \r
+ @return The current value of the stack pointer for the caller.\r
\r
**/\r
UINTN\r
EFIAPI\r
EbcLLGetStackPointer (\r
VOID\r
- )\r
-;\r
+ );\r
\r
/**\r
This function is called to execute an EBC CALLEX instruction.\r
@param CallAddr The function address.\r
@param EbcSp The new EBC stack pointer.\r
@param FramePtr The frame pointer.\r
- \r
+\r
**/\r
VOID\r
EFIAPI\r
IN UINTN CallAddr,\r
IN UINTN EbcSp,\r
IN VOID *FramePtr\r
- )\r
-;\r
+ );\r
\r
/**\r
This function is called to execute an EBC CALLEX instruction.\r
IN UINTN NewStackPointer,\r
IN VOID *FramePtr,\r
IN UINT8 Size\r
- )\r
-;\r
+ );\r
\r
/**\r
When EBC calls native, on return the VM has to stuff the return\r
in the register, so simply return and the caller should get the\r
return result properly.\r
\r
- @return The unmodified value returned by the native code. \r
+ @return The unmodified value returned by the native code.\r
\r
**/\r
INT64\r
EFIAPI\r
EbcLLGetReturnValue (\r
VOID\r
- )\r
-;\r
+ );\r
\r
/**\r
Returns the stack index and buffer assosicated with the Handle parameter.\r