From a6d6552426dcbf726e5549f08b70c9318d6be14b Mon Sep 17 00:00:00 2001 From: Anthony Liguori Date: Fri, 8 May 2009 10:13:01 -0500 Subject: [PATCH] Enable power button even generation. Signed-off-by: Gleb Natapov Signed-off-by: Anthony Liguori --- ..._enable-power-button-even-generation.patch | 20 ++++++++++++++++++ pc-bios/bios-pq/series | 1 + pc-bios/bios.bin | Bin 131072 -> 131072 bytes 3 files changed, 21 insertions(+) create mode 100644 pc-bios/bios-pq/0015_enable-power-button-even-generation.patch 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 index 0000000000..fb5880280e --- /dev/null +++ b/pc-bios/bios-pq/0015_enable-power-button-even-generation.patch @@ -0,0 +1,20 @@ +Enable power button event generation. + +Signed-off-by: Gleb Natapov +Signed-off-by: Anthony Liguori + +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); + diff --git a/pc-bios/bios-pq/series b/pc-bios/bios-pq/series index fdef1793bc..aa5a3753ed 100644 --- a/pc-bios/bios-pq/series +++ b/pc-bios/bios-pq/series @@ -12,3 +12,4 @@ 0012-load-smbios-entries-and-files-from-qemu.patch 0013_fix-non-acpi-timer-interrupt-routing.patch 0014_add-srat-acpi-table-support.patch +0015_enable-power-button-even-generation.patch diff --git a/pc-bios/bios.bin b/pc-bios/bios.bin index 3608a40d1712362282ba85896613900a2bf68e67..8aa5b713caa5e76bb3b6a101afa1996ffbfb2149 100644 GIT binary patch delta 42 wcmZo@;Am*z*zi$=F}3-V$o5Ynj73LSO!W;cwrAXA>{H_cG4%~B8U8E)09!2&FaQ7m delta 42 wcmZo@;Am*z*zi$=v9$S<$o5Ynj73LSO!SQmw`bgB>{H_cG4%~B8UCyR09>IDKmY&$ -- GitLab