diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2012-10-15 14:30:28 -0700 |
---|---|---|
committer | Ronald G. Minnich <rminnich@gmail.com> | 2012-11-12 17:11:53 +0100 |
commit | ad6779138238dc34e8f9da47730229b5891b5fe1 (patch) | |
tree | c92f05257aef5f6072402459452e1753ed8ef014 /src/northbridge/intel/sandybridge/sandybridge.h | |
parent | 08067ba9cbf9904f6637775fe64c8b43229896b6 (diff) |
Avoid using hardcoded values in MRC cache code
The MRC cache code, as implemented, in some cases uses configuration
settings for MRC cache region, and in some cases - the values read
from FMAP. These do not necessarily match, the code should use FMAP
across the board.
This change also refactors mrccache.c to limit number of iterations
through the cache area and number of fmap area searches.
Change-Id: Idb9cb70ead4baa3601aa244afc326d5be0d06446
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: http://review.coreboot.org/1788
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'src/northbridge/intel/sandybridge/sandybridge.h')
-rw-r--r-- | src/northbridge/intel/sandybridge/sandybridge.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/northbridge/intel/sandybridge/sandybridge.h b/src/northbridge/intel/sandybridge/sandybridge.h index f8617dee90..03d146f7df 100644 --- a/src/northbridge/intel/sandybridge/sandybridge.h +++ b/src/northbridge/intel/sandybridge/sandybridge.h @@ -230,10 +230,6 @@ struct mrc_data_container { u8 mrc_data[0]; // Variable size, platform/run time dependent. } __attribute__ ((packed)); -struct mrc_data_container *next_mrc_block(struct mrc_data_container *mrc_cache); -int is_mrc_cache(struct mrc_data_container *mrc_cache); -u32 get_mrc_cache_region(struct mrc_data_container **mrc_region_ptr); -struct mrc_data_container *find_next_mrc_cache(void); struct mrc_data_container *find_current_mrc_cache(void); #if !defined(__PRE_RAM__) void update_mrc_cache(void); |