- OS layer fixes
- Use our cache implementation

svn path=/trunk/; revision=53277
This commit is contained in:
Cameron Gutman 2011-08-17 07:23:55 +00:00
parent ebcc8d5935
commit 2d20935ffb
3 changed files with 2 additions and 17 deletions

View file

@ -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

View file

@ -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>

View 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);