-/**\r
- This function validates the Firmware Control Field.\r
-\r
- @param [in] Ptr Pointer to the start of the field data.\r
- @param [in] Context Pointer to context specific information e.g. this\r
- could be a pointer to the ACPI table header.\r
-**/\r
-STATIC\r
-VOID\r
-EFIAPI\r
-ValidateFirmwareCtrl (\r
- IN UINT8* Ptr,\r
- IN VOID* Context\r
-)\r
-{\r
-#if defined (MDE_CPU_ARM) || defined (MDE_CPU_AARCH64)\r
- if (*(UINT32*)Ptr != 0) {\r
- IncrementErrorCount ();\r
- Print (\r
- L"\nERROR: Firmware Control must be zero for ARM platforms."\r
- );\r
- }\r
-#endif\r
-}\r
-\r
-/**\r
- This function validates the X_Firmware Control Field.\r
-\r
- @param [in] Ptr Pointer to the start of the field data.\r
- @param [in] Context Pointer to context specific information e.g. this\r
- could be a pointer to the ACPI table header.\r
-**/\r
-STATIC\r
-VOID\r
-EFIAPI\r
-ValidateXFirmwareCtrl (\r
- IN UINT8* Ptr,\r
- IN VOID* Context\r
-)\r
-{\r
-#if defined (MDE_CPU_ARM) || defined (MDE_CPU_AARCH64)\r
- if (*(UINT64*)Ptr != 0) {\r
- IncrementErrorCount ();\r
- Print (\r
- L"\nERROR: X Firmware Control must be zero for ARM platforms."\r
- );\r
- }\r
-#endif\r
-}\r
-\r
-/**\r
- This function validates the flags.\r
-\r
- @param [in] Ptr Pointer to the start of the field data.\r
- @param [in] Context Pointer to context specific information e.g. this\r
- could be a pointer to the ACPI table header.\r
-**/\r
-STATIC\r
-VOID\r
-EFIAPI\r
-ValidateFlags (\r
- IN UINT8* Ptr,\r
- IN VOID* Context\r
-)\r
-{\r
-#if defined (MDE_CPU_ARM) || defined (MDE_CPU_AARCH64)\r
- if (((*(UINT32*)Ptr) & HW_REDUCED_ACPI) == 0) {\r
- IncrementErrorCount ();\r
- Print (\r
- L"\nERROR: HW_REDUCED_ACPI flag must be set for ARM platforms."\r
- );\r
- }\r
-#endif\r
-}\r
-\r