coreboot-kgpe-d16/src/arch/x86/boot
Duncan Laurie 11290c49b0 SMM: Restore GNVS pointer in the resume path
The SMM GNVS pointer is normally updated only when the
ACPI tables are created, which does not happen in the
resume path.

In order to restore this pointer it needs to be available
at resume time.  The method used to locate it at creation
time cannot be used again as that magic signature is
overwritten with the address itself.  So a new CBMEM ID
is added to store the 32bit address so it can be found
again easily.

A new function is defined to save this pointer in CBMEM
which needs to be called when the ACPI tables are created
in each mainboard when write_acpi_tables() is called.

The cpu_index variable had to be renamed due to a conflict
when cpu/cpu.h is added for the smm_setup_structures()
prototype.

Change-Id: Ic764ff54525e12b617c1dd8d6a3e5c4f547c3e6b
Signed-off-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-on: http://review.coreboot.org/1765
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
2012-11-14 05:41:12 +01:00
..
Makefile.inc Add automatic SMBIOS table generation 2011-08-26 20:08:52 +02:00
acpi.c SMM: Restore GNVS pointer in the resume path 2012-11-14 05:41:12 +01:00
acpigen.c ACPI: Add function to write _PPC using NVS 2012-07-26 20:31:52 +02:00
boot.c After this has been brought up many times before, rename src/arch/i386 to 2010-12-11 20:33:41 +00:00
coreboot_table.c oprom: Ensure that mode information is valid before putting it in the tables. 2012-11-12 04:22:34 +01:00
gdt.c After this has been brought up many times before, rename src/arch/i386 to 2010-12-11 20:33:41 +00:00
mpspec.c MPTABLE: check for fixed IRQ entries on all pins 2012-08-25 05:15:50 +02:00
multiboot.c After this has been brought up many times before, rename src/arch/i386 to 2010-12-11 20:33:41 +00:00
pirq_routing.c pirq_routing: Allow routing with more than 4 PIRQ links 2012-10-04 04:27:29 +02:00
smbios.c Drop get_smbios_data from chip_operations 2012-10-29 23:48:11 +01:00
tables.c AGESA F15 wrapper for Trinity 2012-07-03 09:38:55 +02:00
wakeup.S use movsl for copying resume memory back 2012-03-30 17:58:55 +02:00