Denis Carikli (GNUtoo@no-log.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/3284
-gerrit
commit d728e59c0e27dfd7a28f6c6d4a47bef9cd94db4f Author: Denis 'GNUtoo' Carikli GNUtoo@no-log.org Date: Sat May 25 13:42:43 2013 +0200
southbridge/intel/i82801gx: Add support for CONFIG_SMM_TSEG
Change-Id: I795c112c2432d56681dace5cd1b1d23b1d361c0a Signed-off-by: Denis 'GNUtoo' Carikli GNUtoo@no-log.org --- src/southbridge/intel/i82801gx/smi.c | 9 +++++++++ 1 file changed, 9 insertions(+)
diff --git a/src/southbridge/intel/i82801gx/smi.c b/src/southbridge/intel/i82801gx/smi.c index 5be2404..39570e5 100644 --- a/src/southbridge/intel/i82801gx/smi.c +++ b/src/southbridge/intel/i82801gx/smi.c @@ -29,6 +29,9 @@ #include <cpu/x86/smm.h> #include <string.h> #include "i82801gx.h" +#if CONFIG_NORTHBRIDGE_INTEL_I945 +#include "../../../northbridge/intel/i945/i945.h" +#endif
extern unsigned char _binary_smm_start; extern unsigned char _binary_smm_size; @@ -245,7 +248,13 @@ static void smm_relocate(void)
printk(BIOS_DEBUG, "Initializing SMM handler...");
+#if CONFIG_SMM_TSEG + pmbase = pci_read_config8(dev_find_slot(0, PCI_DEVFN(0, 0)), TOLUD); + pmbase -= CONFIG_I915_UMA_SIZE; + pmbase -= CONFIG_SMM_TSEG_SIZE; +#else pmbase = pci_read_config16(dev_find_slot(0, PCI_DEVFN(0x1f, 0)), 0x40) & 0xfffc; +#endif printk(BIOS_SPEW, " ... pmbase = 0x%04x\n", pmbase);
smi_en = inl(pmbase + SMI_EN);