Check if we have 64 or 32 bit.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34598 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Clemens Zeidler 2009-12-09 17:49:20 +00:00
parent 6cafce94b5
commit 5237897801
2 changed files with 11 additions and 2 deletions

View File

@ -15,10 +15,15 @@ typedef struct acpi_object_type acpi_object_type;
#define B_ACPI_MODULE_NAME "bus_managers/acpi/v1"
/* This must be uint64 for 64 bit! */
#ifdef B_HAIKU_64_BIT
typedef uint64 acpi_physical_address;
typedef uint64 acpi_io_address;
typedef uint64 acpi_size;
#else
typedef uint32 acpi_physical_address;
typedef uint32 acpi_io_address;
typedef uint32 acpi_size;
#endif
/* Actually a ptr to a NS Node */
typedef void * acpi_handle;

View File

@ -144,8 +144,12 @@
#define COMPILER_DEPENDENT_INT64 int64
#define COMPILER_DEPENDENT_UINT64 uint64
/* TODO: Add 64 bit when Haiku goes 64 bit */
#ifdef B_HAIKU_64_BIT
#define ACPI_MACHINE_WIDTH 64
#else
#define ACPI_MACHINE_WIDTH 32
#endif
#ifdef _KERNEL_MODE