summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2006-04-16 22:23:37 +0000
committerkettenis <kettenis@openbsd.org>2006-04-16 22:23:37 +0000
commitffefd0a1bf0e97a4d83651c10228952b1c5c91a9 (patch)
treed92e8044aa7629e8b3dd49ba0c58d2137a9e6b43
parentIntroduce sti_rom_size() which will compute the size of a card's rom, and (diff)
downloadwireguard-openbsd-ffefd0a1bf0e97a4d83651c10228952b1c5c91a9.tar.xz
wireguard-openbsd-ffefd0a1bf0e97a4d83651c10228952b1c5c91a9.zip
Use aml_bitpos() when copying a field into a buffer.
ok marco@
-rw-r--r--sys/dev/acpi/dsdt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpi/dsdt.c b/sys/dev/acpi/dsdt.c
index 9a6b3d58f89..efb5a9c4ecd 100644
--- a/sys/dev/acpi/dsdt.c
+++ b/sys/dev/acpi/dsdt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dsdt.c,v 1.39 2006/03/21 21:11:10 jordan Exp $ */
+/* $OpenBSD: dsdt.c,v 1.40 2006/04/16 22:23:37 kettenis Exp $ */
/*
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
*
@@ -1510,7 +1510,7 @@ aml_efield(struct acpi_context *ctx, struct aml_value *e_fld,
}
if (pb != rv->v_buffer) {
aml_bufcpy(rv->v_buffer, 0, pb,
- e_fld->v_field.bitpos,
+ aml_bitpos(e_fld->v_field.bitpos),
e_fld->v_field.bitlen);
acpi_os_freemem(pb);