[coreboot-gerrit] New patch to review for coreboot: 8df9315 southbridge/intel/i82801gx: Add support for CONFIG_SMM_TSEG
Denis Carikli (GNUtoo@no-log.org)
gerrit at coreboot.org
Sat May 25 14:29:59 CEST 2013
Denis Carikli (GNUtoo at no-log.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/3284
-gerrit
commit 8df9315245e823fe32333b6d9642fb484a1ebe9e
Author: Denis 'GNUtoo' Carikli <GNUtoo at 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 at 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);
More information about the coreboot-gerrit
mailing list