mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 00:45:24 +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/utxface.c)
|
||||
|
||||
set_target_properties(acpica PROPERTIES COMPILE_DEFINITIONS "ACPI_USE_LOCAL_CACHE")
|
||||
add_dependencies(acpica bugcodes)
|
||||
|
||||
add_library(acpi SHARED
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd">
|
||||
<module name="acpica" type="staticlibrary" allowwarnings="true">
|
||||
<define name="ACPI_USE_LOCAL_CACHE"/>
|
||||
<include base="acpica">include</include>
|
||||
<directory name="dispatcher">
|
||||
<file>dsfield.c</file>
|
||||
|
|
|
@ -149,19 +149,6 @@ AcpiOsFree(void *ptr)
|
|||
|
||||
#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
|
||||
AcpiOsCreateCache (
|
||||
char *CacheName,
|
||||
|
@ -173,7 +160,7 @@ AcpiOsCreateCache (
|
|||
ExAllocatePool(NonPagedPool,sizeof(NPAGED_LOOKASIDE_LIST));
|
||||
|
||||
ExInitializeNPagedLookasideList(Lookaside,
|
||||
(PALLOCATE_FUNCTION)AcpiOsAcquireObjectHelper,// custom memory allocator
|
||||
NULL,
|
||||
NULL,
|
||||
0,
|
||||
ObjectSize,
|
||||
|
@ -283,7 +270,7 @@ AcpiOsInstallInterruptHandler (
|
|||
Internal,
|
||||
0,
|
||||
InterruptNumber,
|
||||
0,
|
||||
InterruptNumber,
|
||||
&DIrql,
|
||||
&Affinity);
|
||||
|
||||
|
|
Loading…
Reference in a new issue