From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JU63T-0006Iv-Rd for qemu-devel@nongnu.org; Tue, 26 Feb 2008 15:05:36 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JU63R-0006HU-K7 for qemu-devel@nongnu.org; Tue, 26 Feb 2008 15:05:34 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JU63Q-0006Gh-V6 for qemu-devel@nongnu.org; Tue, 26 Feb 2008 15:05:33 -0500 Received: from mx1.redhat.com ([66.187.233.31]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JU63Q-0001Fe-Mw for qemu-devel@nongnu.org; Tue, 26 Feb 2008 15:05:32 -0500 From: Glauber Costa Date: Tue, 26 Feb 2008 16:56:37 -0300 Message-Id: <1204055805-32349-8-git-send-email-gcosta@redhat.com> In-Reply-To: <1204055805-32349-7-git-send-email-gcosta@redhat.com> References: <1204055805-32349-1-git-send-email-gcosta@redhat.com> <1204055805-32349-2-git-send-email-gcosta@redhat.com> <1204055805-32349-3-git-send-email-gcosta@redhat.com> <1204055805-32349-4-git-send-email-gcosta@redhat.com> <1204055805-32349-5-git-send-email-gcosta@redhat.com> <1204055805-32349-6-git-send-email-gcosta@redhat.com> <1204055805-32349-7-git-send-email-gcosta@redhat.com> Subject: [Qemu-devel] [PATCH 7/15] implement method _L00 for GPE0 Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: kvm-devel@lists.sourceforge.net Cc: marcelo@kvack.org, glommer@gmail.com, qemu-devel@nongnu.org, Glauber Costa , chrisw@sous-sol.org This corresponds to the cpu hotplug functionality Signed-off-by: Glauber Costa --- bios/acpi-dsdt.dsl | 114 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 114 insertions(+), 0 deletions(-) diff --git a/bios/acpi-dsdt.dsl b/bios/acpi-dsdt.dsl index 1dba157..194a051 100755 --- a/bios/acpi-dsdt.dsl +++ b/bios/acpi-dsdt.dsl @@ -588,6 +588,120 @@ DefinitionBlock ( Scope (\_GPE) { Method(_L00) { + /* Up status */ + If (And(\_PR.PRU, 0x2)) { + Notify(\_PR.CPU1,1) + } + + If (And(\_PR.PRU, 0x4)) { + Notify(\_PR.CPU2,1) + } + + If (And(\_PR.PRU, 0x8)) { + Notify(\_PR.CPU3,1) + } + + If (And(\_PR.PRU, 0x10)) { + Notify(\_PR.CPU4,1) + } + + If (And(\_PR.PRU, 0x20)) { + Notify(\_PR.CPU5,1) + } + + If (And(\_PR.PRU, 0x40)) { + Notify(\_PR.CPU6,1) + } + + If (And(\_PR.PRU, 0x80)) { + Notify(\_PR.CPU7,1) + } + + If (And(\_PR.PRU, 0x100)) { + Notify(\_PR.CPU8,1) + } + + If (And(\_PR.PRU, 0x200)) { + Notify(\_PR.CPU9,1) + } + + If (And(\_PR.PRU, 0x400)) { + Notify(\_PR.CPUA,1) + } + + If (And(\_PR.PRU, 0x800)) { + Notify(\_PR.CPUB,1) + } + + If (And(\_PR.PRU, 0x1000)) { + Notify(\_PR.CPUC,1) + } + + If (And(\_PR.PRU, 0x2000)) { + Notify(\_PR.CPUD,1) + } + + If (And(\_PR.PRU, 0x4000)) { + Notify(\_PR.CPUE,1) + } + + /* Down status */ + If (And(\_PR.PRD, 0x2)) { + Notify(\_PR.CPU1,3) + } + + If (And(\_PR.PRD, 0x4)) { + Notify(\_PR.CPU2,3) + } + + If (And(\_PR.PRD, 0x8)) { + Notify(\_PR.CPU3,3) + } + + If (And(\_PR.PRD, 0x10)) { + Notify(\_PR.CPU4,3) + } + + If (And(\_PR.PRD, 0x20)) { + Notify(\_PR.CPU5,3) + } + + If (And(\_PR.PRD, 0x40)) { + Notify(\_PR.CPU6,3) + } + + If (And(\_PR.PRD, 0x80)) { + Notify(\_PR.CPU7,3) + } + + If (And(\_PR.PRD, 0x100)) { + Notify(\_PR.CPU8,3) + } + + If (And(\_PR.PRD, 0x200)) { + Notify(\_PR.CPU9,3) + } + + If (And(\_PR.PRD, 0x400)) { + Notify(\_PR.CPUA,3) + } + + If (And(\_PR.PRD, 0x800)) { + Notify(\_PR.CPUB,3) + } + + If (And(\_PR.PRD, 0x1000)) { + Notify(\_PR.CPUC,3) + } + + If (And(\_PR.PRD, 0x2000)) { + Notify(\_PR.CPUD,3) + } + + If (And(\_PR.PRD, 0x4000)) { + Notify(\_PR.CPUE,3) + } + Return(0x01) } Method(_L01) { -- 1.4.2