ddk: update includes

git-svn-id: svn://kolibrios.org@6594 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Sergey Semyonov (Serge) 2016-10-15 01:54:24 +00:00
parent 6cbd453d52
commit 3d1f528de7
3 changed files with 7 additions and 3 deletions

View File

@ -246,7 +246,7 @@
/* Type of mutex supported by host. Default is binary semaphores. */ /* Type of mutex supported by host. Default is binary semaphores. */
#ifndef ACPI_MUTEX_TYPE #ifndef ACPI_MUTEX_TYPE
#define ACPI_MUTEX_TYPE ACPI_BINARY_SEMAPHORE #define ACPI_MUTEX_TYPE ACPI_OSL_MUTEX
#endif #endif
/* Global Lock acquire/release */ /* Global Lock acquire/release */

View File

@ -125,7 +125,7 @@
#define ACPI_EXPORT_SYMBOL(symbol) EXPORT_SYMBOL(symbol); #define ACPI_EXPORT_SYMBOL(symbol) EXPORT_SYMBOL(symbol);
#define strtoul simple_strtoul #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_spinlock spinlock_t *
#define acpi_cpu_flags unsigned long #define acpi_cpu_flags unsigned long

View File

@ -96,9 +96,13 @@ static inline void acpi_os_free(void *memory)
kfree(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) 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();
} }
/* /*