From 8cd723bc0cb64f28b1009fd2fa55f6680a402b61 Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Fri, 28 Oct 2016 17:32:24 -0500 Subject: lib/prog_loaders: use common ramstage_cache_invalid() All current implementations of ramstage_cache_invalid() were just resetting the system based on the RESET_ON_INVALID_RAMSTAGE_CACHE Kconfig option. Move that behavior to a single implementation within prog_loaders.c which removes duplication. Change-Id: I67aae73f9e1305732f90d947fe57c5aaf66ada9e Signed-off-by: Aaron Durbin Reviewed-on: https://review.coreboot.org/17184 Tested-by: build bot (Jenkins) Reviewed-by: Duncan Laurie Reviewed-by: Paul Menzel Reviewed-by: Furquan Shaikh --- src/include/program_loading.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/include') diff --git a/src/include/program_loading.h b/src/include/program_loading.h index 3958fda41c..08687f3128 100644 --- a/src/include/program_loading.h +++ b/src/include/program_loading.h @@ -167,9 +167,6 @@ void run_romstage(void); /* Run ramstage from romstage. */ void run_ramstage(void); -/* Called when the stage cache couldn't load ramstage on resume. */ -void ramstage_cache_invalid(void); - /* Determine where stack for ramstage loader is located. */ enum { ROMSTAGE_STACK_CBMEM, ROMSTAGE_STACK_LOW_MEM }; uintptr_t romstage_ram_stack_base(size_t size, int src); -- cgit v1.2.3