X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FKernel%2Farch%2Fx86%2Facpica.c;h=433feaac97dec9574b185c4b8837943afef6663b;hb=2462d860630674d10d554f86aa669163f6f2db6b;hp=726feb715018dc9d5de207db5d73543fff3b3714;hpb=04e01877d06f05c8b8bcdd6fe1aa21287df9dcde;p=tpg%2Facess2.git diff --git a/KernelLand/Kernel/arch/x86/acpica.c b/KernelLand/Kernel/arch/x86/acpica.c index 726feb71..433feaac 100644 --- a/KernelLand/Kernel/arch/x86/acpica.c +++ b/KernelLand/Kernel/arch/x86/acpica.c @@ -118,6 +118,7 @@ ACPI_STATUS AcpiOsPhysicalTableOverride(ACPI_TABLE_HEADER *ExisitingTable, ACPI_ } // -- Memory Management --- +#if USE_ACESS_ACPI_CACHE struct sACPICache { Uint16 nObj; @@ -231,6 +232,7 @@ ACPI_STATUS AcpiOsReleaseObject(ACPI_CACHE_T *Cache, void *Object) LEAVE('i', AE_OK); return AE_OK; } +#endif void *AcpiOsMapMemory(ACPI_PHYSICAL_ADDRESS PhysicalAddress, ACPI_SIZE Length) { @@ -531,6 +533,8 @@ ACPI_STATUS AcpiOsReadMemory(ACPI_PHYSICAL_ADDRESS Address, UINT64 *Value, UINT3 MM_FreeTemp(ptr); } + LOG("*%P = [%i]%X", Address, Width, *Value); + return AE_OK; } @@ -554,7 +558,7 @@ ACPI_STATUS AcpiOsWriteMemory(ACPI_PHYSICAL_ADDRESS Address, UINT64 Value, UINT3 return AE_BAD_PARAMETER; } - if( Address >= 1024*1024 ) { + if( Address >= ONEMEG ) { MM_FreeTemp(ptr); }