Add acpi_get_sleep_type() to i82371eb and P2B _PTS/_WAK methods
[coreboot.git] / src / lib / cbmem.c
index eecefcd5bf48af613dcaae8e9cb228c41f83f733..202f521fdb9bd3552ea500399af941108eb1063b 100644 (file)
@@ -191,8 +191,10 @@ extern u8 acpi_slp_type;
 void cbmem_initialize(void)
 {
 #if CONFIG_HAVE_ACPI_RESUME
-       if (acpi_slp_type == 3) {
+       printk(BIOS_DEBUG, "%s: acpi_slp_type=%d\n", __func__, acpi_slp_type);
+       if (acpi_slp_type == 3 || acpi_slp_type == 2) {
                if (!cbmem_reinit(high_tables_base)) {
+                       printk(BIOS_DEBUG, "cbmem_reinit failed\n");
                        /* Something went wrong, our high memory area got wiped */
                        acpi_slp_type = 0;
                        cbmem_init(high_tables_base, high_tables_size);