mirror of
https://github.com/acpica/acpica/
synced 2025-02-26 18:34:17 +03:00
Linux-specific header: update handling of THREAD_ID and pthread.
For the 32-bit case, improve casting to eliminate possible warnings, especially with the acpica tools.
This commit is contained in:
parent
4ffab75309
commit
86a0ff54c7
@ -159,17 +159,18 @@
|
||||
/* Host-dependent types and defines for user-space ACPICA */
|
||||
|
||||
#define ACPI_FLUSH_CPU_CACHE()
|
||||
#define ACPI_CAST_PTHREAD_T(pthread) ((ACPI_THREAD_ID) (pthread))
|
||||
|
||||
#if defined(__ia64__) || defined(__x86_64__)
|
||||
#define ACPI_MACHINE_WIDTH 64
|
||||
#define COMPILER_DEPENDENT_INT64 long
|
||||
#define COMPILER_DEPENDENT_UINT64 unsigned long
|
||||
#define ACPI_CAST_PTHREAD_T(pthread) ((ACPI_THREAD_ID) (pthread))
|
||||
#else
|
||||
#define ACPI_MACHINE_WIDTH 32
|
||||
#define COMPILER_DEPENDENT_INT64 long long
|
||||
#define COMPILER_DEPENDENT_UINT64 unsigned long long
|
||||
#define ACPI_USE_NATIVE_DIVIDE
|
||||
#define ACPI_CAST_PTHREAD_T(pthread) ((ACPI_THREAD_ID) (UINT32) (void *) (pthread))
|
||||
#endif
|
||||
|
||||
#ifndef __cdecl
|
||||
|
Loading…
x
Reference in New Issue
Block a user