From owner-freebsd-acpi@FreeBSD.ORG Sat Nov 6 10:10:58 2010 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 10E1E106564A; Sat, 6 Nov 2010 10:10:58 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 1B1748FC0A; Sat, 6 Nov 2010 10:10:56 +0000 (UTC) Received: from porto.topspin.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id MAA27435; Sat, 06 Nov 2010 12:10:49 +0200 (EET) (envelope-from avg@icyb.net.ua) Received: from localhost.topspin.kiev.ua ([127.0.0.1]) by porto.topspin.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1PEfjU-000MKn-RE; Sat, 06 Nov 2010 12:10:48 +0200 Message-ID: <4CD529A7.7080206@icyb.net.ua> Date: Sat, 06 Nov 2010 12:10:47 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.12) Gecko/20101029 Lightning/1.0b2 Thunderbird/3.1.6 MIME-Version: 1.0 To: "Moore, Robert" References: <201010121209.06397.hselasky@c2i.net> <4CD02E6D.1070106@freebsd.org> <201011021529.05977.jkim@FreeBSD.org> <201011040844.17109.hselasky@c2i.net> <4911F71203A09E4D9981D27F9D830858BC46A4B1@orsmsx503.amr.corp.intel.com> In-Reply-To: <4911F71203A09E4D9981D27F9D830858BC46A4B1@orsmsx503.amr.corp.intel.com> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "Therien, Guy" , "freebsd-acpi@freebsd.org" Subject: Re: MacBookPro 5,1 X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Nov 2010 10:10:58 -0000 on 05/11/2010 05:57 Moore, Robert said the following: > The problem is stale pointers within the structure, yes? > > Cannot copy the structure. I will never do this kind of thing again. Yes, that was the problem with resource structs that have an ACPI_RESOURCE_SOURCE field, that field would need a deep copy to handle StringPtr in it. Perhaps ACPICA could provide a convenience function for resource copying? Perhaps with an option to carry on optional fields like ACPI_RESOURCE_SOURCE or resetting them? Thank you. -- Andriy Gapon