mirror of
https://github.com/acpica/acpica/
synced 2025-01-28 20:25:25 +03:00
make work with debugger
date 2000.10.24.20.39.00; author agrover; state Exp;
This commit is contained in:
parent
fce1a8c5e9
commit
23822111e2
@ -1,7 +1,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Name: aclinux.h - OS specific defines, etc.
|
||||
* $Revision: 1.23 $
|
||||
* $Revision: 1.2 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -9,8 +9,8 @@
|
||||
*
|
||||
* 1. Copyright Notice
|
||||
*
|
||||
* Some or all of this work - Copyright (c) 1999 - 2002, Intel Corp.
|
||||
* All rights reserved.
|
||||
* Some or all of this work - Copyright (c) 1999, Intel Corp. All rights
|
||||
* reserved.
|
||||
*
|
||||
* 2. License
|
||||
*
|
||||
@ -117,31 +117,15 @@
|
||||
#ifndef __ACLINUX_H__
|
||||
#define __ACLINUX_H__
|
||||
|
||||
|
||||
#define ACPI_OS_NAME "Linux"
|
||||
|
||||
#define ACPI_USE_SYSTEM_CLIBRARY
|
||||
|
||||
#ifdef __KERNEL__
|
||||
|
||||
#include <linux/config.h>
|
||||
#include <linux/string.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/ctype.h>
|
||||
#include <asm/system.h>
|
||||
#include <asm/atomic.h>
|
||||
#include <asm/div64.h>
|
||||
#include <asm/acpi.h>
|
||||
|
||||
#define strtoul simple_strtoul
|
||||
|
||||
#else /* !__KERNEL__ */
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <ctype.h>
|
||||
|
||||
#endif /* __KERNEL__ */
|
||||
|
||||
/* Linux uses GCC */
|
||||
|
||||
@ -150,6 +134,20 @@
|
||||
#undef DEBUGGER_THREADING
|
||||
#define DEBUGGER_THREADING DEBUGGER_SINGLE_THREADED
|
||||
|
||||
#define ACPI_BITS_PER_LONG BITS_PER_LONG
|
||||
#if 0
|
||||
|
||||
/* Use native Linux string library */
|
||||
|
||||
#define ACPI_USE_SYSTEM_CLIBRARY
|
||||
|
||||
/* Special functions */
|
||||
|
||||
#define strtoul simple_strtoul
|
||||
|
||||
/* Linux clib doesn't to strupr, but we do. */
|
||||
char *
|
||||
strupr(char *str);
|
||||
|
||||
#endif /* 0 */
|
||||
|
||||
#endif /* __ACLINUX_H__ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user