acpica: support AcpiOSStall

Fixes #2597
This commit is contained in:
Alexander Boettcher 2017-12-04 11:28:55 +01:00 committed by Christian Helmuth
parent 3f91f7402d
commit 419a48aa06

View File

@ -245,13 +245,24 @@ void AcpiOsWaitEventsComplete()
}
}
static Timer::Connection &timer_connection()
{
static Timer::Connection connection(Acpica::env());
return connection;
}
void AcpiOsSleep (UINT64 sleep_ms)
{
Genode::log(__func__, " ", sleep_ms, " ms");
static Timer::Connection conn(Acpica::env());
conn.msleep(sleep_ms);
return;
timer_connection().msleep(sleep_ms);
}
void AcpiOsStall (UINT32 stall_us)
{
Genode::log(__func__, " ", stall_us, " us");
timer_connection().usleep(stall_us);
}
@ -265,9 +276,6 @@ ACPI_STATUS AcpiOsSignal (UINT32, void *)
UINT64 AcpiOsGetTimer (void)
FAIL(0)
void AcpiOsStall (UINT32)
FAIL()
ACPI_STATUS AcpiOsReadMemory (ACPI_PHYSICAL_ADDRESS, UINT64 *, UINT32)
FAIL(AE_BAD_PARAMETER)