Kernel/x86 - Some extra logging in ACPICA shim
authorJohn Hodge <[email protected]>
Mon, 23 Sep 2013 14:56:29 +0000 (22:56 +0800)
committerJohn Hodge <[email protected]>
Mon, 23 Sep 2013 14:56:29 +0000 (22:56 +0800)
KernelLand/Kernel/arch/x86/acpica.c

index 726feb7..45a7317 100644 (file)
@@ -531,6 +531,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 +556,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);
        }
        

UCC git Repository :: git.ucc.asn.au