@@ -220,6 +220,10 @@ static void acpi_db_test_all_objects(void)
(void)acpi_walk_namespace(ACPI_TYPE_ANY, ACPI_ROOT_OBJECT,
ACPI_UINT32_MAX, acpi_db_test_one_object,
NULL, NULL, NULL);
+
+ /* Release memory mappings that are not needed any more. */
+
+ acpi_os_release_unused_mappings();
}
/*******************************************************************************
@@ -106,6 +106,8 @@ void acpi_ex_exit_interpreter(void)
"Could not release AML Interpreter mutex"));
}
+ acpi_os_release_unused_mappings();
+
return_VOID;
}
@@ -187,6 +187,10 @@ void *acpi_os_map_memory(acpi_physical_address where, acpi_size length);
void acpi_os_unmap_memory(void *logical_address, acpi_size size);
#endif
+#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_release_unused_mappings
+#define acpi_os_release_unused_mappings() do { } while (FALSE)
+#endif
+
#ifndef ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_get_physical_address
acpi_status
acpi_os_get_physical_address(void *logical_address,