From 84b2f9f5b8e40eb9a114c1be5741b4141c5566e0 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Thu, 23 Jun 2022 11:53:34 +0200 Subject: lib/program_loaders.c: Mark run_ramstage with __noreturn This allows the compiler to optimize out code called after run_ramstage. Also remove some die() statements in soc code as run_ramstage already has a die_with_postcode statement. Change-Id: Id8b841712661d3257b0dc67b509f97bdc31fcf6f Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/c/coreboot/+/65811 Tested-by: build bot (Jenkins) Reviewed-by: Felix Held Reviewed-by: Julius Werner --- src/lib/prog_loaders.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/prog_loaders.c b/src/lib/prog_loaders.c index 0139ca4099..01775b92bd 100644 --- a/src/lib/prog_loaders.c +++ b/src/lib/prog_loaders.c @@ -82,7 +82,7 @@ void preload_ramstage(void) cbfs_preload(CONFIG_CBFS_PREFIX "/ramstage"); } -void run_ramstage(void) +void __noreturn run_ramstage(void) { struct prog ramstage = PROG_INIT(PROG_RAMSTAGE, CONFIG_CBFS_PREFIX "/ramstage"); -- cgit v1.2.3