change ACPI_BITS_PER_LONG to Bob-approved ACPI_MACHINE_WIDTH

date	2002.05.11.00.39.00;	author agrover;	state Exp;
This commit is contained in:
aystarik 2005-06-29 20:25:25 +00:00
parent 257e333540
commit 36a0eba080
3 changed files with 14 additions and 15 deletions

View File

@ -1,7 +1,7 @@
/******************************************************************************
*
* Name: aclinux.h - OS specific defines, etc.
* $Revision: 1.22 $
* $Revision: 1.24 $
*
*****************************************************************************/
@ -130,15 +130,10 @@
#include <asm/system.h>
#include <asm/atomic.h>
#include <asm/div64.h>
#include <asm/acpi.h>
#define strtoul simple_strtoul
#ifdef CONFIG_IA64
#define ACPI_FLUSH_CPU_CACHE()
#else
#define ACPI_FLUSH_CPU_CACHE() wbinvd()
#endif
#else /* !__KERNEL__ */
#include <stdarg.h>
@ -153,7 +148,8 @@
#include "acgcc.h"
#undef DEBUGGER_THREADING
#define DEBUGGER_THREADING DEBUGGER_SINGLE_THREADED
#define DEBUGGER_THREADING DEBUGGER_SINGLE_THREADED
#define ACPI_MACHINE_WIDTH BITS_PER_LONG
#endif /* __ACLINUX_H__ */

View File

@ -1,7 +1,7 @@
/******************************************************************************
*
* Name: acwin.h - OS specific defines, etc.
* $Revision: 1.8 $
* $Revision: 1.12 $
*
*****************************************************************************/
@ -127,6 +127,8 @@
#define ACPI_OS_NAME "Windows"
#define ACPI_MACHINE_WIDTH 32
#define strupr _strupr
#define ACPI_USE_STANDARD_HEADERS
@ -151,10 +153,9 @@
* For Acpi applications, we don't want to try to access the global lock
*/
#ifdef ACPI_APPLICATION
#define ACPI_ACQUIRE_GLOBAL_LOCK(GLptr, Acq) (Acq = 0xFF)
#define ACPI_RELEASE_GLOBAL_LOCK(GLptr, Pnd) (Pnd = 0)
#define ACPI_ACQUIRE_GLOBAL_LOCK(GLptr, Acq) if (AcpiGbl_GlobalLockPresent) {Acq = 0xFF;} else {Acq = 0;}
#define ACPI_RELEASE_GLOBAL_LOCK(GLptr, Pnd) if (AcpiGbl_GlobalLockPresent) {Pnd = 0xFF;} else {Pnd = 0;}
#else
#define ACPI_ACQUIRE_GLOBAL_LOCK(GLptr, Acq) __asm { \
__asm mov ecx, GLptr \
__asm acq10: \

View File

@ -1,7 +1,7 @@
/******************************************************************************
*
* Name: acwin.h - OS specific defines, etc.
* $Revision: 1.6 $
* $Revision: 1.9 $
*
*****************************************************************************/
@ -124,6 +124,8 @@
#define ACPI_OS_NAME "Windows"
#define ACPI_MACHINE_WIDTH 64
#define strupr _strupr
#define ACPI_USE_STANDARD_HEADERS
@ -149,8 +151,8 @@
* For Acpi applications, we don't want to try to access the global lock
*/
#ifdef ACPI_APPLICATION
#define ACPI_ACQUIRE_GLOBAL_LOCK(GLptr, Acq) (Acq = 0xFF)
#define ACPI_RELEASE_GLOBAL_LOCK(GLptr, Pnd) (Pnd = 0)
#define ACPI_ACQUIRE_GLOBAL_LOCK(GLptr, Acq) if (AcpiGbl_GlobalLockPresent) {Acq = 0xFF;} else {Acq = 0;}
#define ACPI_RELEASE_GLOBAL_LOCK(GLptr, Pnd) if (AcpiGbl_GlobalLockPresent) {Pnd = 0xFF;} else {Pnd = 0;}
#else
#define ACPI_ACQUIRE_GLOBAL_LOCK(GLptr, Acq)