diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2019-08-03 22:39:34 +0300 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2019-08-29 06:40:01 +0000 |
commit | ed4d0d78bbaa2220c3540608bcc420272df5d888 (patch) | |
tree | b9cb0db5f4a3e1b282ddba27b9f2a727c90e87a2 /src/soc/intel/fsp_broadwell_de/memmap.c | |
parent | 703658a7ce1e6d1b5536a96251e4d1e708de4ac6 (diff) |
intel/fsp_broadwell_de: Use smm_subregion()
Tested on OCP/Wedge100s:
No error is visible in console output, still boots to OS.
Change-Id: I986bbe978d3f68693b2d4538ccbcc11cdbd23c6a
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/34745
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/intel/fsp_broadwell_de/memmap.c')
-rw-r--r-- | src/soc/intel/fsp_broadwell_de/memmap.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/soc/intel/fsp_broadwell_de/memmap.c b/src/soc/intel/fsp_broadwell_de/memmap.c index 36f400c7b3..cbd3cf7788 100644 --- a/src/soc/intel/fsp_broadwell_de/memmap.c +++ b/src/soc/intel/fsp_broadwell_de/memmap.c @@ -17,6 +17,7 @@ #define __SIMPLE_DEVICE__ #include <cbmem.h> +#include <cpu/x86/smm.h> #include <drivers/intel/fsp1_0/fsp_util.h> #include <soc/broadwell_de.h> #include <soc/pci_devs.h> @@ -51,3 +52,9 @@ size_t sa_get_tseg_size(void) /* Subtract base to get the size */ return ret - sa_get_tseg_base(); } + +void smm_region(uintptr_t *start, size_t *size) +{ + *start = sa_get_tseg_base(); + *size = sa_get_tseg_size(); +} |