mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-31 00:24:51 +00:00
parent
3f91f7402d
commit
419a48aa06
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user