From owner-acpi-jp@jp.FreeBSD.org Mon Mar  8 22:57:45 2004
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) id i28Dvjs57581;
	Mon, 8 Mar 2004 22:57:45 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from mailbox.univie.ac.at (mailbox.univie.ac.at [131.130.1.27])
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) with ESMTP/inet id i28Dvh757576
	for <acpi-jp@jp.FreeBSD.org>; Mon, 8 Mar 2004 22:57:43 +0900 (JST)
	(envelope-from l.ertl@univie.ac.at)
Received: from pcle2.cc.univie.ac.at (pcle2.cc.univie.ac.at [131.130.2.177])
	by mailbox.univie.ac.at (8.12.10/8.12.10) with ESMTP id i28DvX7e405110;
	Mon, 8 Mar 2004 14:57:35 +0100
From: Lukas Ertl <l.ertl@univie.ac.at>
To: Nate Lawson <nate@root.org>
cc: acpi-jp@jp.FreeBSD.org
In-Reply-To: <20040307224600.T45055@root.org>
Message-ID: <20040308145653.G51503@pcle2.cc.univie.ac.at>
References: <20040308021112.P688@korben.in.tern> <20040307224600.T45055@root.org>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-DCC-ZID-Univie-Metrics: imap 4243; Body=0 Fuz1=0 Fuz2=0
Reply-To: acpi-jp@jp.FreeBSD.org
Precedence: list
Date: Mon, 8 Mar 2004 14:57:32 +0100
X-Sequence: acpi-jp 3103
Subject: [acpi-jp 3103] Re: acpi_video driver not working
Sender: owner-acpi-jp@jp.FreeBSD.org
X-Originator: l.ertl@univie.ac.at
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+040307

On Sun, 7 Mar 2004, Nate Lawson wrote:

> On Mon, 8 Mar 2004, Lukas Ertl wrote:
> >
> > I think I have found out why: DSS_COMMIT is defined as (UINT32)1 << 31,
> > which overflows the (signed int) 'number' param of acpi_SetInteger(), and
> > subsequently the ACPI_OBJECT Integer.Value member.
>
> I believe the parameter for acpi_{Get,Set}Integer should be an
> ACPI_INTEGER which is 64 bits.  Care to hack up a patch?

I'm probably not familiar enough with the ACPI internals to make sure this
doesn't cause disasters :-)

regards,
le

-- 
Lukas Ertl                             eMail: l.ertl@univie.ac.at
UNIX Systemadministrator               Tel.:  (+43 1) 4277-14073
Vienna University Computer Center      Fax.:  (+43 1) 4277-9140
University of Vienna                   http://mailbox.univie.ac.at/~le/
