]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
Enable power button even generation.
authorAnthony Liguori <aliguori@us.ibm.com>
Fri, 8 May 2009 15:13:01 +0000 (10:13 -0500)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 8 May 2009 15:20:48 +0000 (10:20 -0500)
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
pc-bios/bios-pq/0015_enable-power-button-even-generation.patch [new file with mode: 0644]
pc-bios/bios-pq/series
pc-bios/bios.bin

diff --git a/pc-bios/bios-pq/0015_enable-power-button-even-generation.patch b/pc-bios/bios-pq/0015_enable-power-button-even-generation.patch
new file mode 100644 (file)
index 0000000..fb58802
--- /dev/null
@@ -0,0 +1,20 @@
+Enable power button event generation.
+
+Signed-off-by: Gleb Natapov <gleb@redhat.com>
+Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
+
+diff --git a/bios/rombios32.c b/bios/rombios32.c
+index 81e3bad..9986531 100644
+--- a/bios/rombios32.c
++++ b/bios/rombios32.c
+@@ -1767,8 +1767,8 @@ void acpi_bios_init(void)
+     fadt->plvl3_lat = cpu_to_le16(0xfff); // C3 state not supported
+     fadt->gpe0_blk = cpu_to_le32(0xafe0);
+     fadt->gpe0_blk_len = 4;
+-    /* WBINVD + PROC_C1 + PWR_BUTTON + SLP_BUTTON + FIX_RTC */
+-    fadt->flags = cpu_to_le32((1 << 0) | (1 << 2) | (1 << 4) | (1 << 5) | (1 << 6));
++    /* WBINVD + PROC_C1 + SLP_BUTTON + FIX_RTC */
++    fadt->flags = cpu_to_le32((1 << 0) | (1 << 2) | (1 << 5) | (1 << 6));
+     acpi_build_table_header((struct acpi_table_header *)fadt, "FACP",
+                             sizeof(*fadt), 1);
index fade61858737c0b803263b5c12ddc3bffc63605c..5132c301f7053a36e66561ed374f46aff47cc00a 100644 (file)
@@ -10,3 +10,4 @@
 0010_bios-mark-the-acpi-sci-interrupt-as-connected-to-irq-9.patch
 0011_read-additional-acpi-tables-from-a-vm.patch
 0013_fix-non-acpi-timer-interrupt-routing.patch
+0015_enable-power-button-even-generation.patch
index ab94bae9a158f5467747960fbe605bfb858f0dd8..59cc2850076ce6a0cbdfe63634995a6906f76e30 100644 (file)
Binary files a/pc-bios/bios.bin and b/pc-bios/bios.bin differ