Author: cozzie Date: 2008-12-11 07:33:29 +0100 (Thu, 11 Dec 2008) New Revision: 1071
Modified: coreboot-v3/include/arch/x86/cpu.h Log: Check that the CAR and ROM areas don't collide.
Signed-off-by: Corey Osgood corey.osgood@gmail.com Acked-by: Carl-Daniel Hailfinger c-d.hailfinger.devel.2006@gmx.net
Modified: coreboot-v3/include/arch/x86/cpu.h =================================================================== --- coreboot-v3/include/arch/x86/cpu.h 2008-12-10 21:23:09 UTC (rev 1070) +++ coreboot-v3/include/arch/x86/cpu.h 2008-12-11 06:33:29 UTC (rev 1071) @@ -26,7 +26,15 @@ #include <device/device.h> #include <shared.h> #include <mtrr.h> +#include <config.h>
+/* Check that the CAR and ROM areas aren't going to collide */ +#if ((0x100000000 - (CONFIG_COREBOOT_ROMSIZE_KB * 1024)) < (CONFIG_CARBASE + CONFIG_CARSIZE)) +#error Your current Cache-As-Ram base does not allow room to map the selected\ + chip size to memory. Please select a different chip size or move the CAR\ + base to another sane location. +#endif + #define X86_VENDOR_INTEL 0 #define X86_VENDOR_CYRIX 1 #define X86_VENDOR_AMD 2