Arthur Heymans has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/36358 )
Change subject: arch/x86/cbmem.c: Clean up unused paths ......................................................................
arch/x86/cbmem.c: Clean up unused paths
This code is not used in ramstage.
Change-Id: I023f11cfcefacdcae3c5db22bf98b40a3575cc9c Signed-off-by: Arthur Heymans arthur@aheymans.xyz --- M src/arch/x86/cbmem.c 1 file changed, 1 insertion(+), 12 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/58/36358/1
diff --git a/src/arch/x86/cbmem.c b/src/arch/x86/cbmem.c index 16a73c7..e055c18 100644 --- a/src/arch/x86/cbmem.c +++ b/src/arch/x86/cbmem.c @@ -18,19 +18,8 @@
void *cbmem_top_romstage(void) { - static void *cbmem_top_backup; - void *top_backup; - - if (ENV_RAMSTAGE && cbmem_top_backup != NULL) - return cbmem_top_backup; - /* Top of CBMEM is at highest usable DRAM address below 4GiB. */ - top_backup = (void *)restore_top_of_low_cacheable(); - - if (ENV_RAMSTAGE) - cbmem_top_backup = top_backup; - - return top_backup; + return (void *)restore_top_of_low_cacheable(); }
#endif /* CBMEM_TOP_BACKUP */