mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
[HAL]
- Report table lookup failures - Report supported ACPI version svn path=/trunk/; revision=53831
This commit is contained in:
parent
31eb9d7849
commit
c21792df52
1 changed files with 17 additions and 1 deletions
|
@ -332,6 +332,12 @@ HalpAcpiGetTableFromBios(IN PLOADER_PARAMETER_BLOCK LoaderBlock,
|
|||
/* Using Mm */
|
||||
MmUnmapIoSpace(Header, 2 * PAGE_SIZE);
|
||||
}
|
||||
|
||||
DPRINT1("Failed to find ACPI table %c%c%c%c\n",
|
||||
(Signature & 0xFF),
|
||||
(Signature & 0xFF00) >> 8,
|
||||
(Signature & 0xFF0000) >> 16,
|
||||
(Signature & 0xFF000000) >> 24);
|
||||
|
||||
/* Didn't find anything */
|
||||
return NULL;
|
||||
|
@ -386,7 +392,15 @@ HalpAcpiGetTableFromBios(IN PLOADER_PARAMETER_BLOCK LoaderBlock,
|
|||
}
|
||||
|
||||
/* The correct checksum is always 0, anything else is illegal */
|
||||
if (CheckSum) HalpInvalidAcpiTable = Header->Signature;
|
||||
if (CheckSum)
|
||||
{
|
||||
HalpInvalidAcpiTable = Header->Signature;
|
||||
DPRINT1("Checksum failed on ACPI table %c%c%c%c\n",
|
||||
(Signature & 0xFF),
|
||||
(Signature & 0xFF00) >> 8,
|
||||
(Signature & 0xFF0000) >> 16,
|
||||
(Signature & 0xFF000000) >> 24);
|
||||
}
|
||||
}
|
||||
|
||||
/* Return the table */
|
||||
|
@ -755,6 +769,8 @@ HalpAcpiTableCacheInit(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
|||
}
|
||||
}
|
||||
|
||||
DPRINT1("ACPI %d.0 detected\n", (Rsdt->Header.Revision + 1));
|
||||
|
||||
/* Done */
|
||||
return Status;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue