Modified to use new OsdMapMemory interface

date	2000.05.09.22.29.00;	author mwalz;	state Exp;
This commit is contained in:
aystarik 2005-06-29 17:43:57 +00:00
parent 0456018231
commit 10d90b5716

View File

@ -175,7 +175,12 @@ AmlSystemMemorySpaceHandler (
DEBUG_PRINT ((TRACE_OPREGION | VERBOSE_INFO),
("Read(%d width) Address:0x%08x\n", BitWidth, Address));
PhysicalAddrPtr = OsdMapMemory ((void *) Address, 4);
Status = OsdMapMemory ((void *) Address, 4, &PhysicalAddrPtr);
if (ACPI_FAILURE (Status))
{
return_ACPI_STATUS (Status);
}
switch (BitWidth)
{
@ -212,8 +217,13 @@ AmlSystemMemorySpaceHandler (
DEBUG_PRINT ((TRACE_OPREGION | VERBOSE_INFO),
("Write(%d width) Address:0x%08x Value 0x%08x\n", BitWidth, Address, *Value));
PhysicalAddrPtr = OsdMapMemory ((void *) Address, 4);
Status = OsdMapMemory ((void *) Address, 4, &PhysicalAddrPtr);
if (ACPI_FAILURE (Status))
{
return_ACPI_STATUS (Status);
}
switch (BitWidth)
{
case 8: