From owner-freebsd-current Sun Oct 1 22:59:46 2000 Delivered-To: freebsd-current@freebsd.org Received: from tasogare.imasy.or.jp (tasogare.imasy.or.jp [202.227.24.5]) by hub.freebsd.org (Postfix) with ESMTP id CDF4A37B502; Sun, 1 Oct 2000 22:59:44 -0700 (PDT) Received: from localhost (iwasaki.imasy.or.jp [202.227.24.92]) by tasogare.imasy.or.jp (8.10.2+3.3W/3.7W-tasogare/smtpfeed 1.07) with ESMTP id e925xgr75782; Mon, 2 Oct 2000 14:59:42 +0900 (JST) (envelope-from iwasaki@jp.FreeBSD.org) To: msmith@freebsd.org Cc: iwasaki@jp.FreeBSD.org, takawata@shidahara1.planet.sci.kobe-u.ac.jp, haro@tk.kubota.co.jp, current@freebsd.org, acpi-jp@jp.FreeBSD.org Subject: Re: Interesting AML bug... recommended workaround? In-Reply-To: <200010012204.e91M4wJ00361@mass.osd.bsdi.com> References: <200010012204.e91M4wJ00361@mass.osd.bsdi.com> X-Mailer: Mew version 1.94.1 on Emacs 19.34 / Mule 2.3 (SUETSUMUHANA) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20001002145839G.iwasaki@jp.FreeBSD.org> Date: Mon, 02 Oct 2000 14:58:39 +0900 From: Mitsuru IWASAKI X-Dispatcher: imput version 20000228(IM140) Lines: 19 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Here's what seems to be an interesting AML or AML parser bug. > > OperationRegion(PSRG, SystemMemory, 0x0410, 0x1) > Field(PSRG, DWordAcc, NoLock, Preserve) { > , 2, > PS2E, 1 > } > > The field is marked for 32-bit access, but the region is only 1 byte > wide. What's the correct thing to do here? Expand the region to > accomodate the field's access requirements? Constrain the access size of > the field to that of the region? I thought read 32-bit, update target bits, write back whole 32-bit for updating. For reading value, read 32-bit and shift & mask bits as well. I hope I could understand description in Spec 15.2.3.3.1.9; "If desired, AccessType can be used to force minimum access width." Thanks To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message