From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KVR2R-0002DR-Gl for qemu-devel@nongnu.org; Tue, 19 Aug 2008 09:14:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KVR2Q-0002DE-Pa for qemu-devel@nongnu.org; Tue, 19 Aug 2008 09:14:19 -0400 Received: from [199.232.76.173] (port=40313 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KVR2Q-0002DB-Ko for qemu-devel@nongnu.org; Tue, 19 Aug 2008 09:14:18 -0400 Received: from savannah.gnu.org ([199.232.41.3]:57955 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KVR2Q-0000Ik-Qg for qemu-devel@nongnu.org; Tue, 19 Aug 2008 09:14:18 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KVR2P-0003Uq-RS for qemu-devel@nongnu.org; Tue, 19 Aug 2008 13:14:17 +0000 Received: from aurel32 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KVR2P-0003Um-Je for qemu-devel@nongnu.org; Tue, 19 Aug 2008 13:14:17 +0000 MIME-Version: 1.0 Errors-To: aurel32 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Aurelien Jarno Message-Id: Date: Tue, 19 Aug 2008 13:14:17 +0000 Subject: [Qemu-devel] [5027] ACPI suspend type field is 3 bits long Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 5027 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5027 Author: aurel32 Date: 2008-08-19 13:14:17 +0000 (Tue, 19 Aug 2008) Log Message: ----------- ACPI suspend type field is 3 bits long According to ACPI spec table 4-13 suspend type field should be 3 bits long. (Gleb Natapov) Modified Paths: -------------- trunk/hw/acpi.c Modified: trunk/hw/acpi.c =================================================================== --- trunk/hw/acpi.c 2008-08-19 12:55:20 UTC (rev 5026) +++ trunk/hw/acpi.c 2008-08-19 13:14:17 UTC (rev 5027) @@ -145,7 +145,7 @@ s->pmcntrl = val & ~(SUS_EN); if (val & SUS_EN) { /* change suspend type */ - sus_typ = (val >> 10) & 3; + sus_typ = (val >> 10) & 7; switch(sus_typ) { case 0: /* soft power off */ qemu_system_shutdown_request();