diff options
author | 2010-07-01 06:29:32 +0000 | |
---|---|---|
committer | 2010-07-01 06:29:32 +0000 | |
commit | fb31a26556f1442cf903faf70bf2884098b5b4b7 (patch) | |
tree | 58f7f6c72f30303f8264346aacecf33c44d3f916 /sys/dev/acpi/acpidebug.c | |
parent | Free the list of object classes allocated after validating an entry. (diff) | |
download | wireguard-openbsd-fb31a26556f1442cf903faf70bf2884098b5b4b7.tar.xz wireguard-openbsd-fb31a26556f1442cf903faf70bf2884098b5b4b7.zip |
Backout recent AML changes, breaks on R210 and others
Diffstat (limited to 'sys/dev/acpi/acpidebug.c')
-rw-r--r-- | sys/dev/acpi/acpidebug.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/dev/acpi/acpidebug.c b/sys/dev/acpi/acpidebug.c index 0f44ed5307b..1e979170afb 100644 --- a/sys/dev/acpi/acpidebug.c +++ b/sys/dev/acpi/acpidebug.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpidebug.c,v 1.24 2010/06/27 21:04:22 jordan Exp $ */ +/* $OpenBSD: acpidebug.c,v 1.25 2010/07/01 06:29:32 jordan Exp $ */ /* * Copyright (c) 2006 Marco Peereboom <marco@openbsd.org> * @@ -238,8 +238,9 @@ db_aml_walktree(struct aml_node *node) { while (node) { db_aml_showvalue(node->value); - db_aml_walktree(SIMPLEQ_FIRST(&node->son)); - node = SIMPLEQ_NEXT(node, sib); + db_aml_walktree(node->child); + + node = node->sibling; } } @@ -333,7 +334,7 @@ db_acpi_disasm(db_expr_t addr, int haddr, db_expr_t count, char *modif) void db_acpi_tree(db_expr_t addr, int haddr, db_expr_t count, char *modif) { - db_aml_walktree(&aml_root); + db_aml_walktree(aml_root.child); } void |