[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] ACPI suspend type field is 3 bits long
From: |
Gleb Natapov |
Subject: |
[Qemu-devel] [PATCH] ACPI suspend type field is 3 bits long |
Date: |
Thu, 26 Jun 2008 11:12:31 +0300 |
According to ACPI spec table 4-13 suspend type field should be 3 bits
long.
diff --git a/hw/acpi.c b/hw/acpi.c
index 1f83dc6..8f08a7e 100644
--- a/hw/acpi.c
+++ b/hw/acpi.c
@@ -152,7 +152,7 @@ static void pm_ioport_writew(void *opaque, uint32_t addr,
uint32_t val)
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();
--
Gleb.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [PATCH] ACPI suspend type field is 3 bits long,
Gleb Natapov <=