From a4ffe9dda0eb50eb698fef303f426408338fa0ff Mon Sep 17 00:00:00 2001 From: Kyösti Mälkki Date: Mon, 27 Jun 2016 13:24:11 +0300 Subject: intel post-car: Separate files for setup_stack_and_mtrrs() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Have a common romstage.c file to prepare CAR stack guards. MTRR setup around cbmem_top() is somewhat northbridge specific, place stubs under northbridge for platrform that will move to RELOCATABLE_RAMSTAGE. Change-Id: I3d4fe4145894e83e5980dc2a7bbb8a91acecb3c6 Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/15762 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/northbridge/intel/gm45/ram_calc.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/northbridge/intel/gm45') diff --git a/src/northbridge/intel/gm45/ram_calc.c b/src/northbridge/intel/gm45/ram_calc.c index 9a65e19c4c..92f1a7f7e3 100644 --- a/src/northbridge/intel/gm45/ram_calc.c +++ b/src/northbridge/intel/gm45/ram_calc.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include "gm45.h" @@ -105,3 +106,8 @@ void *cbmem_top(void) { return (void *) smm_region_start(); } + +void *setup_stack_and_mtrrs(void) +{ + return (void*)CONFIG_RAMTOP; +} -- cgit v1.2.3