diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2006-11-27 18:30:39 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2006-11-27 18:30:39 +0000 |
commit | bea421002c064742dd575ed94896af3b3394adae (patch) | |
tree | 606be8f7a32e9afad10033527a60783db3e91f52 /sys/dev | |
parent | 99c759cf94d99e7cd02f6c3ea2afa67f31d4e728 (diff) |
Make AML_CRSLEN return the correct length for small resources.
ok jordan@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/acpi/dsdt.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpi/dsdt.h b/sys/dev/acpi/dsdt.h index 2ffb1f6eae3..d1ad9919d97 100644 --- a/sys/dev/acpi/dsdt.h +++ b/sys/dev/acpi/dsdt.h @@ -1,4 +1,4 @@ -/* $OpenBSD: dsdt.h,v 1.20 2006/11/27 15:17:37 jordan Exp $ */ +/* $OpenBSD: dsdt.h,v 1.21 2006/11/27 18:30:38 kettenis Exp $ */ /* * Copyright (c) 2005 Marco Peereboom <marco@openbsd.org> * @@ -175,7 +175,7 @@ union acpi_resource (x)->hdr.typecode >> 3) #define AML_CRSLEN(x) ((x)->hdr.typecode & 0x80 ? \ (x)->hdr.length+2 : \ -(x)->hdr.length & 0x7) +(x)->hdr.typecode & 0x7) int aml_print_resource(union acpi_resource *, void *); int aml_parse_resource(int, uint8_t *, int (*)(union acpi_resource *, void *), |