From 3d1f528de781e7b3b631ca9f648afe8138750494 Mon Sep 17 00:00:00 2001 From: "Sergey Semyonov (Serge)" Date: Sat, 15 Oct 2016 01:54:24 +0000 Subject: [PATCH] ddk: update includes git-svn-id: svn://kolibrios.org@6594 a494cfbc-eb01-0410-851d-a64ba20cac60 --- drivers/include/acpi/platform/acenv.h | 2 +- drivers/include/acpi/platform/aclinux.h | 2 +- drivers/include/acpi/platform/aclinuxex.h | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/include/acpi/platform/acenv.h b/drivers/include/acpi/platform/acenv.h index 056f245ad..952ddbc83 100644 --- a/drivers/include/acpi/platform/acenv.h +++ b/drivers/include/acpi/platform/acenv.h @@ -246,7 +246,7 @@ /* Type of mutex supported by host. Default is binary semaphores. */ #ifndef ACPI_MUTEX_TYPE -#define ACPI_MUTEX_TYPE ACPI_BINARY_SEMAPHORE +#define ACPI_MUTEX_TYPE ACPI_OSL_MUTEX #endif /* Global Lock acquire/release */ diff --git a/drivers/include/acpi/platform/aclinux.h b/drivers/include/acpi/platform/aclinux.h index 323e5daec..cefff89cc 100644 --- a/drivers/include/acpi/platform/aclinux.h +++ b/drivers/include/acpi/platform/aclinux.h @@ -125,7 +125,7 @@ #define ACPI_EXPORT_SYMBOL(symbol) EXPORT_SYMBOL(symbol); #define strtoul simple_strtoul -#define acpi_cache_t struct kmem_cache +//#define acpi_cache_t struct kmem_cache #define acpi_spinlock spinlock_t * #define acpi_cpu_flags unsigned long diff --git a/drivers/include/acpi/platform/aclinuxex.h b/drivers/include/acpi/platform/aclinuxex.h index 509e7ca02..95fc6f292 100644 --- a/drivers/include/acpi/platform/aclinuxex.h +++ b/drivers/include/acpi/platform/aclinuxex.h @@ -96,9 +96,13 @@ static inline void acpi_os_free(void *memory) kfree(memory); } +void *acpi_os_acquire_object(acpi_cache_t * cache); + +u32 __attribute__ ((dllimport)) GetPid(void)__asm__("GetPid"); + static inline acpi_thread_id acpi_os_get_thread_id(void) { - return (acpi_thread_id) (unsigned long)-1; + return (acpi_thread_id) (unsigned long)GetPid(); } /*