summaryrefslogtreecommitdiff
path: root/tests/bios-tables-test.c
diff options
context:
space:
mode:
authorIgor Mammedov <imammedo@redhat.com>2017-12-29 16:16:41 +0100
committerMichael S. Tsirkin <mst@redhat.com>2018-01-18 21:52:39 +0200
commitab20bbd29767a634bb11ca9f2115233f1e9e950c (patch)
tree6658a6a7c45d99d7b6d7282841ef34e3f1d94ee3 /tests/bios-tables-test.c
parent03010579835a17450693888f8b35a66817668d68 (diff)
downloadqemu-ab20bbd29767a634bb11ca9f2115233f1e9e950c.tar.gz
tests: acpi: add comments to fetch_rsdt_referenced_tables/data->tables usage
Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'tests/bios-tables-test.c')
-rw-r--r--tests/bios-tables-test.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/bios-tables-test.c b/tests/bios-tables-test.c
index 1314ad8f37..b354aaafe6 100644
--- a/tests/bios-tables-test.c
+++ b/tests/bios-tables-test.c
@@ -257,6 +257,8 @@ static void fetch_rsdt_referenced_tables(test_data *data)
addr = le32_to_cpu(data->rsdt_tables_addr[i + 1]); /* fadt is first */
fetch_table(&ssdt_table, addr);
+
+ /* Add table to ASL test tables list */
g_array_append_val(data->tables, ssdt_table);
}
}
@@ -427,6 +429,7 @@ try_again:
return exp_tables;
}
+/* test the list of tables in @data->tables against reference tables */
static void test_acpi_asl(test_data *data)
{
int i;