From bea421002c064742dd575ed94896af3b3394adae Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Mon, 27 Nov 2006 18:30:39 +0000 Subject: Make AML_CRSLEN return the correct length for small resources. ok jordan@ --- sys/dev/acpi/dsdt.h | 4 ++-- 1 file 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 * @@ -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 *), -- cgit v1.2.3