1 qemu: bios: provide gpe _L0x methods (Glauber Costa)
3 provide methods for gpe blk 0, even though they do nothing atm
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>
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 (
20 + Name(_HID, "ACPI0006")
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)
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",