diff --git a/repos/libports/src/lib/acpica/iomem.cc b/repos/libports/src/lib/acpica/iomem.cc index c6258c3da6..856c5d9fad 100644 --- a/repos/libports/src/lib/acpica/iomem.cc +++ b/repos/libports/src/lib/acpica/iomem.cc @@ -15,6 +15,7 @@ #include #include #include +#include #include #include @@ -31,8 +32,7 @@ extern "C" { #define FAIL(retval) \ { \ Genode::error(__func__, ":", __LINE__, " called - dead"); \ - Genode::Lock lock; \ - while (1) lock.lock(); \ + while (1) Genode::sleep_forever(); \ return retval; \ } diff --git a/repos/libports/src/lib/acpica/osl.cc b/repos/libports/src/lib/acpica/osl.cc index a90932fe4e..ecd82c261e 100644 --- a/repos/libports/src/lib/acpica/osl.cc +++ b/repos/libports/src/lib/acpica/osl.cc @@ -12,6 +12,7 @@ */ #include +#include #include #include @@ -30,8 +31,7 @@ extern "C" { #define FAIL(retval) \ { \ Genode::error(__func__, ":", __LINE__, " called - dead"); \ - Genode::Lock lock; \ - while (1) lock.lock(); \ + while (1) Genode::sleep_forever(); \ return retval; \ } @@ -56,26 +56,26 @@ void AcpiOsFree (void *ptr) ACPI_STATUS AcpiOsCreateLock (ACPI_SPINLOCK *spin_lock) { - *spin_lock = new (Acpica::heap()) Genode::Lock(); + *spin_lock = new (Acpica::heap()) Genode::Mutex(); return AE_OK; } ACPI_CPU_FLAGS AcpiOsAcquireLock (ACPI_SPINLOCK h) { - Genode::Lock *lock = reinterpret_cast(h); - lock->lock(); + Genode::Mutex *mutex = reinterpret_cast(h); + mutex->acquire(); return AE_OK; } void AcpiOsReleaseLock (ACPI_SPINLOCK h, ACPI_CPU_FLAGS flags) { - Genode::Lock *lock = reinterpret_cast(h); + Genode::Mutex *mutex = reinterpret_cast(h); if (flags != AE_OK) Genode::warning("warning - unknown flags in ", __func__); - lock->unlock(); + mutex->release(); return; }