From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=209.132.183.28; helo=mx1.redhat.com; envelope-from=lersek@redhat.com; receiver=edk2-devel@lists.01.org Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 010DA2232BDF6 for ; Wed, 17 Jan 2018 06:58:52 -0800 (PST) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4CFF412E510; Wed, 17 Jan 2018 15:04:12 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-120-236.rdu2.redhat.com [10.10.120.236]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5515C60E3E; Wed, 17 Jan 2018 15:04:09 +0000 (UTC) To: Andrew Fish References: <7345A34A-2F80-4420-B635-E9777C597D67@apple.com> Cc: "edk2-devel@lists.01.org" , Josh Triplett From: Laszlo Ersek Message-ID: Date: Wed, 17 Jan 2018 16:04:09 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <7345A34A-2F80-4420-B635-E9777C597D67@apple.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Wed, 17 Jan 2018 15:04:12 +0000 (UTC) Subject: Re: Anyone got a good example of using acpica.org to execute AML code under EFI? X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jan 2018 14:58:53 -0000 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit On 01/17/18 03:58, Andrew Fish wrote: > I was looking for some code to execute AML under ACPI. I see the > acpica github supports building acpidump... Does anyone know of an > example that supports executing AML from EFI? Yes, I have tested (called) AML methods using ACPICA from EFI. The BIOS Bits project provides (among other things) a UEFI bootable ISO image that contains an EFI build of ACPICA. The ACPICA functionality is exposed via Python methods. If I remember correctly, the interface is simple enough for the user to call AML methods directly from the Python REPL. https://biosbits.org/ We've discussed the project on edk2-devel in the past, minimally under: http://mid.mail-archive.com/55E80FF8.10200@redhat.com Also CC'ing Josh. Thanks Laszlo