diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2006-04-16 22:23:38 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2006-04-16 22:23:38 +0000 |
commit | 18c412ee20ce7b210bfda93894b0cdd2d88726af (patch) | |
tree | 559a703db291add38f67c55764c3c1cb250fd474 | |
parent | 5eaea4c893599bf5f55886960e35fad167db1145 (diff) |
Use aml_bitpos() when copying a field into a buffer.
ok marco@
-rw-r--r-- | sys/dev/acpi/dsdt.c | 4 |
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); |