kernel/acpi/acpi_osl.cpp
/*
 * Platform and hardware-independent physical memory interfaces
 */
Platform and hardware-independent physical memory interfaces
Platform and hardware - independent physical memory interfaces
ACPI_STATUS AcpiOsReadMemory(ACPI_PHYSICAL_ADDRESS Address, UINT64 *Value, UINT32 Width)
{
  KL_TRC_ENTRY;
  uint64_t *mem = (uint64_t *)AcpiOsMapMemory(Address, Width / 8);
  *Value = *mem;
  AcpiOsUnmapMemory((void *)mem, Width / 8);
  KL_TRC_EXIT;
  return AE_OK;
}
ACPI_STATUS AcpiOsReadMemory ( ACPI_PHYSICAL_ADDRESS Address , UINT64 * Value , UINT32 Width ) { KL_TRC_ENTRY ; uint64_t * mem = ( uint64_t * ) AcpiOsMapMemory ( Address , Width / 8 ) ; * Value = * mem ; AcpiOsUnmapMemory ( ( void * ) mem , Width / 8 ) ; KL_TRC_EXIT ; return AE_OK ; }
Platform and hardware-independent physical memory interfaces
Platform and hardware - independent physical memory interfaces