diff options
author | 2010-07-08 20:56:31 +0000 | |
---|---|---|
committer | 2010-07-08 20:56:31 +0000 | |
commit | 311c37bc2b70774d77150ddc45085ebc496f9794 (patch) | |
tree | 6c6d7e5a681276d4db08c785495db6057d75bb79 /sys/dev/acpi/acpidebug.c | |
parent | Switch hppa, i386 and powerpc to gcc4. Bump libc major to handle ABI corner (diff) | |
download | wireguard-openbsd-311c37bc2b70774d77150ddc45085ebc496f9794.tar.xz wireguard-openbsd-311c37bc2b70774d77150ddc45085ebc496f9794.zip |
Add mapping for ACPI device to PCI bdf (match autoconf tree)
Simplify resource parsing function to use buffer argument
Convert namespace linked lists to use queue macros
ok marco@, deraadt@
Diffstat (limited to 'sys/dev/acpi/acpidebug.c')
-rw-r--r-- | sys/dev/acpi/acpidebug.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/dev/acpi/acpidebug.c b/sys/dev/acpi/acpidebug.c index 1e979170afb..b5cf136af7c 100644 --- a/sys/dev/acpi/acpidebug.c +++ b/sys/dev/acpi/acpidebug.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpidebug.c,v 1.25 2010/07/01 06:29:32 jordan Exp $ */ +/* $OpenBSD: acpidebug.c,v 1.26 2010/07/08 20:56:31 jordan Exp $ */ /* * Copyright (c) 2006 Marco Peereboom <marco@openbsd.org> * @@ -238,9 +238,8 @@ db_aml_walktree(struct aml_node *node) { while (node) { db_aml_showvalue(node->value); - db_aml_walktree(node->child); - - node = node->sibling; + db_aml_walktree(SIMPLEQ_FIRST(&node->son)); + node = SIMPLEQ_NEXT(node, sib); } } @@ -334,7 +333,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.child); + db_aml_walktree(&aml_root); } void |