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));
build_header((void*)fadt, FACP_SIGNATURE, sizeof(*fadt), 1);
u16 len = qemu_cfg_next_acpi_table_len();
void *addr = malloc_high(len);
if (!addr) {
- dprintf(1, "Not enogh memory of ext acpi table of size %d!\n", len);
+ dprintf(1, "Not enough memory for ext acpi table of size %d!\n"
+ , len);
continue;
}
ACPI_INIT_TABLE(qemu_cfg_next_acpi_table_load(addr, len));
if (tbl_idx == MAX_ACPI_TABLES) {
- dprintf(1, "To many external table!\n");
+ dprintf(1, "Too many external tables!\n");
break;
}
}
}
u32
-find_resume_vector()
+find_resume_vector(void)
{
dprintf(4, "rsdp=%p\n", RsdpAddr);
if (!RsdpAddr || RsdpAddr->signature != RSDP_SIGNATURE)