mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
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> git-svn-id: svn://coreboot.org/repository/coreboot-v3@1071 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
parent
68529567e4
commit
85f94c96c1
1 changed files with 8 additions and 0 deletions
|
@ -26,6 +26,14 @@
|
|||
#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
|
||||
|
|
Loading…
Add table
Reference in a new issue