| 1 |
qemu: bios: provide gpe _L0x methods (Glauber Costa)
|
| 2 |
|
| 3 |
provide methods for gpe blk 0, even though they do nothing atm
|
| 4 |
|
| 5 |
Signed-off-by: Glauber Costa <gcosta@redhat.com>
|
| 6 |
Signed-off-by: Avi Kivity <avi@qumranet.com>
|
| 7 |
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
|
| 8 |
|
| 9 |
Index: bochs/bios/acpi-dsdt.dsl
|
| 10 |
===================================================================
|
| 11 |
--- bochs.orig/bios/acpi-dsdt.dsl
|
| 12 |
+++ bochs/bios/acpi-dsdt.dsl
|
| 13 |
@@ -597,4 +597,59 @@ DefinitionBlock (
|
| 14 |
Zero, /* reserved */
|
| 15 |
Zero /* reserved */
|
| 16 |
})
|
| 17 |
+
|
| 18 |
+ Scope (\_GPE)
|
| 19 |
+ {
|
| 20 |
+ Name(_HID, "ACPI0006")
|
| 21 |
+
|
| 22 |
+ Method(_L00) {
|
| 23 |
+ Return(0x01)
|
| 24 |
+ }
|
| 25 |
+ Method(_L01) {
|
| 26 |
+ Return(0x01)
|
| 27 |
+ }
|
| 28 |
+ Method(_L02) {
|
| 29 |
+ Return(0x01)
|
| 30 |
+ }
|
| 31 |
+ Method(_L03) {
|
| 32 |
+ Return(0x01)
|
| 33 |
+ }
|
| 34 |
+ Method(_L04) {
|
| 35 |
+ Return(0x01)
|
| 36 |
+ }
|
| 37 |
+ Method(_L05) {
|
| 38 |
+ Return(0x01)
|
| 39 |
+ }
|
| 40 |
+ Method(_L06) {
|
| 41 |
+ Return(0x01)
|
| 42 |
+ }
|
| 43 |
+ Method(_L07) {
|
| 44 |
+ Return(0x01)
|
| 45 |
+ }
|
| 46 |
+ Method(_L08) {
|
| 47 |
+ Return(0x01)
|
| 48 |
+ }
|
| 49 |
+ Method(_L09) {
|
| 50 |
+ Return(0x01)
|
| 51 |
+ }
|
| 52 |
+ Method(_L0A) {
|
| 53 |
+ Return(0x01)
|
| 54 |
+ }
|
| 55 |
+ Method(_L0B) {
|
| 56 |
+ Return(0x01)
|
| 57 |
+ }
|
| 58 |
+ Method(_L0C) {
|
| 59 |
+ Return(0x01)
|
| 60 |
+ }
|
| 61 |
+ Method(_L0D) {
|
| 62 |
+ Return(0x01)
|
| 63 |
+ }
|
| 64 |
+ Method(_L0E) {
|
| 65 |
+ Return(0x01)
|
| 66 |
+ }
|
| 67 |
+ Method(_L0F) {
|
| 68 |
+ Return(0x01)
|
| 69 |
+ }
|
| 70 |
+ }
|
| 71 |
+
|
| 72 |
}
|
| 73 |
Index: bochs/bios/rombios32.c
|
| 74 |
===================================================================
|
| 75 |
--- bochs.orig/bios/rombios32.c
|
| 76 |
+++ bochs/bios/rombios32.c
|
| 77 |
@@ -1647,6 +1647,8 @@ void acpi_bios_init(void)
|
| 78 |
fadt->pm_tmr_len = 4;
|
| 79 |
fadt->plvl2_lat = cpu_to_le16(0xfff); // C2 state not supported
|
| 80 |
fadt->plvl3_lat = cpu_to_le16(0xfff); // C3 state not supported
|
| 81 |
+ fadt->gpe0_blk = cpu_to_le32(0xafe0);
|
| 82 |
+ fadt->gpe0_blk_len = 4;
|
| 83 |
/* WBINVD + PROC_C1 + PWR_BUTTON + SLP_BUTTON + FIX_RTC */
|
| 84 |
fadt->flags = cpu_to_le32((1 << 0) | (1 << 2) | (1 << 4) | (1 << 5) | (1 << 6));
|
| 85 |
acpi_build_table_header((struct acpi_table_header *)fadt, "FACP",
|
| 86 |
|
| 87 |
--
|
| 88 |
|
| 89 |
|
| 90 |
|
| 91 |
|
| 92 |
|