Received: from eggs.gnu.org ([2001:4830:134:3::10]:46490) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1Nck-0001hu-8D for qemu-devel@nongnu.org; Thu, 09 Jan 2014 16:58:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W1Ncb-0005t6-RQ for qemu-devel@nongnu.org; Thu, 09 Jan 2014 16:58:46 -0500 Received: from mail-qe0-x22d.google.com ([2607:f8b0:400d:c02::22d]:49739) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1Ncb-0005sz-Fk for qemu-devel@nongnu.org; Thu, 09 Jan 2014 16:58:37 -0500 Received: by mail-qe0-f45.google.com with SMTP id 6so3787389qea.18 for ; Thu, 09 Jan 2014 13:58:36 -0800 (PST) Date: Thu, 9 Jan 2014 16:58:15 -0500 From: "Gabriel L. Somlo" Message-ID: <20140109215815.GC1276@ERROL.INI.CMU.EDU> References: <52CDCDA2.4040206@redhat.com> <20140108233924.GA11234@foober.ini.cmu.edu> <20140109015117.GB19321@redhat.com> <20140109185144.GA1276@ERROL.INI.CMU.EDU> <52CF02A6.8000007@redhat.com> <20140109213359.GA9385@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140109213359.GA9385@redhat.com> Subject: Re: [Qemu-devel] [PATCH] Add option to disable FDC from ISA bus and ACPI on i386 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: Paolo Bonzini , imammedo@redhat.com, lersek@redhat.com, agraf@suse.de, qemu-devel@nongnu.org On Thu, Jan 09, 2014 at 11:33:59PM +0200, Michael S. Tsirkin wrote: > Except XP doesn't support ConcatenateResTemplate so need to write > it differently. I tried this: Device(HPET) { ... Field(HPTM, DWordAcc, Lock, Preserve) { VEND, 32, PRD, 32, UNUS, 32, GCNF, 32, } ... Name(CRS1, ResourceTemplate() { Memory32Fixed(ReadOnly, 0xFED00000, // Address Base 0x00000400, // Address Length ) }) Name(CRS2, ResourceTemplate() { IRQNoFlags() {2, 8} Memory32Fixed(ReadOnly, 0xFED00000, // Address Base 0x00000400, // Address Length ) }) Method(_CRS, 0) { Store(GCNF, Local0) If (LEqual(LAnd(Local0, 3), 3)) { // Legacy replacement route Return (CRS2) } else { Return (CRS1) } } } and got the same results. Besides, does it *really* matter? XP always takes the "else" branch, so it should never attempt to execute "ConcatenateResTemplate()" anyway. --Gabriel