mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 08:55:19 +00:00
[ACPI]
- OS layer fixes - Use our cache implementation svn path=/trunk/; revision=53277
This commit is contained in:
parent
ebcc8d5935
commit
2d20935ffb
3 changed files with 2 additions and 17 deletions
|
@ -121,7 +121,6 @@ add_library(acpica
|
||||||
acpica/utilities/uttrack.c
|
acpica/utilities/uttrack.c
|
||||||
acpica/utilities/utxface.c)
|
acpica/utilities/utxface.c)
|
||||||
|
|
||||||
set_target_properties(acpica PROPERTIES COMPILE_DEFINITIONS "ACPI_USE_LOCAL_CACHE")
|
|
||||||
add_dependencies(acpica bugcodes)
|
add_dependencies(acpica bugcodes)
|
||||||
|
|
||||||
add_library(acpi SHARED
|
add_library(acpi SHARED
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd">
|
<!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd">
|
||||||
<module name="acpica" type="staticlibrary" allowwarnings="true">
|
<module name="acpica" type="staticlibrary" allowwarnings="true">
|
||||||
<define name="ACPI_USE_LOCAL_CACHE"/>
|
|
||||||
<include base="acpica">include</include>
|
<include base="acpica">include</include>
|
||||||
<directory name="dispatcher">
|
<directory name="dispatcher">
|
||||||
<file>dsfield.c</file>
|
<file>dsfield.c</file>
|
||||||
|
|
|
@ -149,19 +149,6 @@ AcpiOsFree(void *ptr)
|
||||||
|
|
||||||
#ifndef ACPI_USE_LOCAL_CACHE
|
#ifndef ACPI_USE_LOCAL_CACHE
|
||||||
|
|
||||||
void*
|
|
||||||
AcpiOsAcquireObjectHelper (
|
|
||||||
POOL_TYPE PoolType,
|
|
||||||
SIZE_T NumberOfBytes,
|
|
||||||
ULONG Tag)
|
|
||||||
{
|
|
||||||
void* Alloc = ExAllocatePool(PoolType, NumberOfBytes);
|
|
||||||
|
|
||||||
/* acpica expects memory allocated from cache to be zeroed */
|
|
||||||
RtlZeroMemory(Alloc,NumberOfBytes);
|
|
||||||
return Alloc;
|
|
||||||
}
|
|
||||||
|
|
||||||
ACPI_STATUS
|
ACPI_STATUS
|
||||||
AcpiOsCreateCache (
|
AcpiOsCreateCache (
|
||||||
char *CacheName,
|
char *CacheName,
|
||||||
|
@ -173,7 +160,7 @@ AcpiOsCreateCache (
|
||||||
ExAllocatePool(NonPagedPool,sizeof(NPAGED_LOOKASIDE_LIST));
|
ExAllocatePool(NonPagedPool,sizeof(NPAGED_LOOKASIDE_LIST));
|
||||||
|
|
||||||
ExInitializeNPagedLookasideList(Lookaside,
|
ExInitializeNPagedLookasideList(Lookaside,
|
||||||
(PALLOCATE_FUNCTION)AcpiOsAcquireObjectHelper,// custom memory allocator
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
0,
|
0,
|
||||||
ObjectSize,
|
ObjectSize,
|
||||||
|
@ -283,7 +270,7 @@ AcpiOsInstallInterruptHandler (
|
||||||
Internal,
|
Internal,
|
||||||
0,
|
0,
|
||||||
InterruptNumber,
|
InterruptNumber,
|
||||||
0,
|
InterruptNumber,
|
||||||
&DIrql,
|
&DIrql,
|
||||||
&Affinity);
|
&Affinity);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue