Added a temporary? warning if the ACPI_MACHINE_WIDTH == 32 and Rsdp->XsdtPhysicalAddress > ACPI_UINT32_MAX.
The code is in a part of the ACPI code we import, so using its code style and is based on similar code a few lines above. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35592 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
7506431527
commit
af11926fa4
@ -620,6 +620,19 @@ AcpiTbParseRootTable (
|
||||
*/
|
||||
Address = (ACPI_PHYSICAL_ADDRESS) Rsdp->XsdtPhysicalAddress;
|
||||
TableEntrySize = sizeof (UINT64);
|
||||
|
||||
#if ACPI_MACHINE_WIDTH == 32
|
||||
if (Rsdp->XsdtPhysicalAddress > ACPI_UINT32_MAX)
|
||||
{
|
||||
/* Will truncate 64-bit address to 32 bits, issue warning */
|
||||
|
||||
ACPI_WARNING ((AE_INFO,
|
||||
"64-bit Physical Address in XSDT is too large (%8.8X%8.8X),"
|
||||
" truncating",
|
||||
ACPI_FORMAT_UINT64 (Rsdp->XsdtPhysicalAddress)));
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user