Add error msg for Index/Bank field registers out-of-range.

Supplement the exception code with an actual message.
This commit is contained in:
Robert Moore 2011-10-28 14:37:45 -07:00
parent fc17ad2d76
commit 75f3969b36

View File

@ -409,6 +409,8 @@ AcpiExRegisterOverflow (
ACPI_OPERAND_OBJECT *ObjDesc,
UINT64 Value)
{
ACPI_FUNCTION_NAME (ExRegisterOverflow);
if (ObjDesc->CommonField.BitLength >= ACPI_INTEGER_BIT_SIZE)
{
@ -425,6 +427,11 @@ AcpiExRegisterOverflow (
* The Value is larger than the maximum value that can fit into
* the register.
*/
ACPI_ERROR ((AE_INFO,
"Index value 0x%8.8X%8.8X overflows field width 0x%X",
ACPI_FORMAT_UINT64 (Value),
ObjDesc->CommonField.BitLength));
return (TRUE);
}