summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpi/acpidebug.c
diff options
context:
space:
mode:
authorjordan <jordan@openbsd.org>2007-02-06 18:56:31 +0000
committerjordan <jordan@openbsd.org>2007-02-06 18:56:31 +0000
commit048d6e7c85aa66240e9ba8932fd02a50fcc96852 (patch)
tree8b7eec7ffefbf57ed45e421a39b45d6cf337e8d0 /sys/dev/acpi/acpidebug.c
parentUse atomic.h operation for manipulating p_siglist in struct proc. Solves (diff)
downloadwireguard-openbsd-048d6e7c85aa66240e9ba8932fd02a50fcc96852.tar.xz
wireguard-openbsd-048d6e7c85aa66240e9ba8932fd02a50fcc96852.zip
Added support for calling _OSI method
Display byte/word/string/nameref for aml_mnem function ok marco@
Diffstat (limited to 'sys/dev/acpi/acpidebug.c')
-rw-r--r--sys/dev/acpi/acpidebug.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/acpi/acpidebug.c b/sys/dev/acpi/acpidebug.c
index f11b1cf7934..795837bd8de 100644
--- a/sys/dev/acpi/acpidebug.c
+++ b/sys/dev/acpi/acpidebug.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpidebug.c,v 1.14 2006/12/21 19:59:02 deraadt Exp $ */
+/* $OpenBSD: acpidebug.c,v 1.15 2007/02/06 18:56:31 jordan Exp $ */
/*
* Copyright (c) 2006 Marco Peereboom <marco@openbsd.org>
*
@@ -42,7 +42,7 @@ extern uint8_t *aml_parseend(struct aml_scope *);
extern int aml_parselength(struct aml_scope *);
extern int aml_parseopcode(struct aml_scope *);
-extern const char *aml_mnem(int opcode);
+extern const char *aml_mnem(int opcode, uint8_t *);
extern const char *aml_args(int opcode);
extern const char *aml_getname(uint8_t *);
extern const char *aml_nodename(struct aml_node *);
@@ -159,7 +159,7 @@ db_aml_showvalue(struct aml_value *value)
case AML_OBJTYPE_FIELDUNIT:
db_printf("%s: access=%x,lock=%x,update=%x pos=%.4x "
"len=%.4x\n",
- aml_mnem(value->v_field.type),
+ aml_mnem(value->v_field.type, NULL),
AML_FIELD_ACCESS(value->v_field.flags),
AML_FIELD_LOCK(value->v_field.flags),
AML_FIELD_UPDATE(value->v_field.flags),
@@ -171,7 +171,7 @@ db_aml_showvalue(struct aml_value *value)
break;
case AML_OBJTYPE_BUFFERFIELD:
db_printf("%s: pos=%.4x len=%.4x ",
- aml_mnem(value->v_field.type),
+ aml_mnem(value->v_field.type, NULL),
value->v_field.bitpos,
value->v_field.bitlen);
@@ -236,7 +236,7 @@ db_aml_objtype(struct aml_value *val)
return "refof";
case AML_OBJTYPE_FIELDUNIT:
case AML_OBJTYPE_BUFFERFIELD:
- return aml_mnem(val->v_field.type);
+ return aml_mnem(val->v_field.type, NULL);
}
return ("");
@@ -416,7 +416,7 @@ db_aml_disasm(struct aml_node *root, uint8_t *start, uint8_t *end,
start = scope->pos;
opcode = aml_parseopcode(scope);
- mnem = aml_mnem(opcode);
+ mnem = aml_mnem(opcode, scope->pos);
args = aml_args(opcode);
if (*args == 'p') {